Module: Avo::Concerns::HasHelpers
- Included in:
- ExecutionContext, Fields::BaseField, Resources::Base
- Defined in:
- lib/avo/concerns/has_helpers.rb
Instance Method Summary collapse
Instance Method Details
#helpers ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/avo/concerns/has_helpers.rb', line 4 def helpers @helpers ||= Class.new do def initialize helper_names = ActionController::Base.all_helpers_from_path Rails.root.join("app", "helpers") helpers = ActionController::Base.modules_for_helpers helper_names helpers.each do |helper| extend helper end end end.new end |