Module: Cell::Rails::HelperAPI::ClassMethods
- Defined in:
- lib/cell/rails/helper_api.rb
Instance Attribute Summary collapse
-
#_routes ⇒ Object
Returns the value of attribute _routes.
Instance Method Summary collapse
Instance Attribute Details
#_routes ⇒ Object
Returns the value of attribute _routes.
18 19 20 |
# File 'lib/cell/rails/helper_api.rb', line 18 def _routes @_routes end |
Instance Method Details
#action_methods ⇒ Object
30 31 32 33 |
# File 'lib/cell/rails/helper_api.rb', line 30 def action_methods # DISCUSS: we have to overwrite this to avoid a stupid dependency in AbstractController::UrlFor where _routes.named_routes.helper_names is accessed. public_instance_methods(true).map { |x| x.to_s } end |
#helper_modules ⇒ Object
20 21 22 |
# File 'lib/cell/rails/helper_api.rb', line 20 def helper_modules [_helpers, InternalHelpers] end |
#view_context_class ⇒ Object
24 25 26 27 28 |
# File 'lib/cell/rails/helper_api.rb', line 24 def view_context_class super @view_context_class._routes = _routes @view_context_class end |