Module: RailsSettingsUi::MainAppRouteDelegator
- Defined in:
- lib/rails-settings-ui/main_app_route_delegator.rb
Instance Method Summary collapse
-
#method_missing(method, *args, &block) ⇒ Object
delegate url helpers to main_app.
- #respond_to?(method) ⇒ Boolean
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
delegate url helpers to main_app
3 4 5 6 7 8 9 |
# File 'lib/rails-settings-ui/main_app_route_delegator.rb', line 3 def method_missing(method, *args, &block) if main_app_route_method?(method) main_app.send(method, *args) else super end end |
Instance Method Details
#respond_to?(method) ⇒ Boolean
11 12 13 |
# File 'lib/rails-settings-ui/main_app_route_delegator.rb', line 11 def respond_to?(method) super || main_app_route_method?(method) end |