Module: Modular::Rendering::ClassMethods
- Defined in:
- lib/modular/rendering.rb
Instance Method Summary collapse
Instance Method Details
#view_context_class ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/modular/rendering.rb', line 19 def view_context_class context = super context.send :define_method, :render_component do |component| component.render end context.send :include, Rails.application.routes.url_helpers if defined? Rails context.send :include, ApplicationHelper if defined? ApplicationHelper context end |