Method: Decanter::Core::ClassMethods#decant
- Defined in:
- lib/decanter/core.rb
#decant(args) ⇒ Object
52 53 54 55 56 57 |
# File 'lib/decanter/core.rb', line 52 def decant(args) return {} unless args.present? args = args.to_unsafe_h.with_indifferent_access if args.class.name == 'ActionController::Parameters' {}.merge( unhandled_keys(args) ) .merge( handled_keys(args) ) end |