Method: GitModel::Persistable#attributes=

Defined in:
lib/gitmodel/persistable.rb

#attributes=(new_attributes, guard_protected_attributes = true) ⇒ Object



78
79
80
81
82
83
# File 'lib/gitmodel/persistable.rb', line 78

def attributes=(new_attributes, guard_protected_attributes = true)
  @attributes = HashWithIndifferentAccess.new
  if new_attributes
    new_attributes.each {|k,v| @attributes[k] = v}
  end
end