lib/chozo/varia_model.rb in chozo-0.4.1 vs lib/chozo/varia_model.rb in chozo-0.4.2

- old
+ new

@@ -265,10 +265,10 @@ def carefree_assign(new_attrs = {}) attributes.deep_merge!(new_attrs) end def whitelist_assign(new_attrs = {}) - attributes.dotted_paths.each do |dotted_path| + self.class.attributes.dotted_paths.each do |dotted_path| value = new_attrs.dig(dotted_path) next if value.nil? set_attribute(dotted_path, value) end