mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-22 03:32:18 -05:00
21 lines
448 B
Ruby
21 lines
448 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Components
|
|
class Base < Phlex::HTML
|
|
include Components
|
|
|
|
# Include any helpers you want to be available across all components
|
|
include Phlex::Rails::Helpers::Routes
|
|
include Phlex::Rails::Helpers::Translate
|
|
|
|
register_value_helper :current_user
|
|
|
|
if Rails.env.development?
|
|
def before_template
|
|
comment { "Before #{self.class.name}" }
|
|
super
|
|
end
|
|
end
|
|
end
|
|
end
|