Module: Formed::FromParams

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/formed/from_params.rb

Defined Under Namespace

Modules: ClassMethods Classes: FromParamsAssignment

Instance Method Summary collapse

Instance Method Details

#from_params(params, additional_params = {}) ⇒ Object



21
22
23
24
25
# File 'lib/formed/from_params.rb', line 21

def from_params(params, additional_params = {})
  attributes_hash = params.merge(additional_params)

  FromParamsAssignment.call(self, attributes_hash)
end