Module: EasygoingActiveModel::Model

Extended by:
ActiveSupport::Concern
Includes:
ActiveModel::Model
Defined in:
lib/easygoing_active_model/model.rb

Instance Method Summary collapse

Instance Method Details

#initialize(params = {}) ⇒ Object



6
7
8
9
# File 'lib/easygoing_active_model/model.rb', line 6

def initialize(params={})
  params = params.select{|attr, value| self.respond_to?("#{attr}=")}
  super(params)
end