lib/rest_in_peace.rb in rest-in-peace-1.3.1 vs lib/rest_in_peace.rb in rest-in-peace-1.4.0

- old
+ new

@@ -16,9 +16,13 @@ def to_h Hash[each_pair.to_a] end + def update_attributes(attributes) + update_from_hash(attributes) + end + protected def update_from_hash(hash) hash.each do |key, value| next unless self.class.members.map(&:to_s).include?(key.to_s)