Module: SimpleAction::DelegatesToParams
- Extended by:
- ActiveSupport::Concern
- Included in:
- Service
- Defined in:
- lib/simple_action/concerns/delegates_to_params.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/simple_action/concerns/delegates_to_params.rb', line 12 def method_missing(sym, *args, &block) if pass_sym_to_params?(sym) params.send(sym, *args, &block) else super(sym, *args, &block) end end |
Instance Method Details
#respond_to?(sym, include_private = false) ⇒ Boolean
8 9 10 |
# File 'lib/simple_action/concerns/delegates_to_params.rb', line 8 def respond_to?(sym, include_private = false) pass_sym_to_params?(sym) || super(sym, include_private) end |