Module: RailsSettingsUi::RouteDelegator

Defined in:
lib/rails-settings-ui/route_delegator.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object

delegate url helpers to another engine



3
4
5
6
7
8
9
# File 'lib/rails-settings-ui/route_delegator.rb', line 3

def method_missing(method, *args, &block)
  if engine_route_method?(method)
    send(RailsSettingsUi.engine_name).send(method, *args)
  else
    super
  end
end

Instance Method Details

#respond_to?(method) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/rails-settings-ui/route_delegator.rb', line 11

def respond_to?(method)
  super || engine_route_method?(method)
end