# File lib/mixins/accessible.rb, line 24 def update_attributes(attributes_hash) attributes_hash.each do |key, value| attribute = self[key] if attribute.respond_to? :accessible? attribute.update_attributes(value) else self[key] = value end end end