module ActiveHashExt
Constants
- VERSION
Public Class Methods
included(base)
click to toggle source
# File lib/active_hash_ext.rb, line 4 def self.included base base.extend ClassMethods end
Public Instance Methods
update(attributes)
click to toggle source
# File lib/active_hash_ext.rb, line 32 def update(attributes) self.attributes.merge(attributes).each do |attribute| send("#{attribute.first}=",attribute.last) end end
update_attributes(attributes)
click to toggle source
# File lib/active_hash_ext.rb, line 38 def update_attributes(attributes) update(attributes) end