mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 23:22:53 +00:00
15 lines
382 B
Ruby
15 lines
382 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Components::Base < Phlex::HTML
|
|
register_value_helper :admin_tool
|
|
register_value_helper :current_user
|
|
# Include any helpers you want to be available across all components
|
|
include Phlex::Rails::Helpers::Routes
|
|
|
|
if Rails.env.development?
|
|
def before_template
|
|
comment { "Before #{self.class.name}" }
|
|
super
|
|
end
|
|
end
|
|
end
|