Module: SnFoil::Rails::InjectRequestParams
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/snfoil/rails/concerns/inject_request_params.rb
Instance Method Summary collapse
Instance Method Details
#inject_request_params(**options) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/snfoil/rails/concerns/inject_request_params.rb', line 24 def inject_request_params(**) return if [:params] return unless params [:params] = params.to_unsafe_h.deep_symbolize_keys [:request_params] = [:params].deep_dup end |