Module: Smithy::Liquid::Filters::SmithyHelpers
- Defined in:
- lib/smithy/liquid/filters/smithy_helpers.rb
Instance Method Summary collapse
Instance Method Details
#rails_helper(helper, *args) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/smithy/liquid/filters/smithy_helpers.rb', line 5 def rails_helper(helper, *args) = (args) helper = helper.to_sym return nil if !controller.view_context.respond_to?(helper) if .blank? controller.view_context.public_send(helper) else controller.view_context.public_send(helper, ) end end |