Permalink
Browse files

fixed bug in setter function where unsaved attributes were not being …

…updated in some cases
  • Loading branch information...
kevinvangelder committed Sep 24, 2012
1 parent 760bf33 commit 8e3c4c6b9357f8a6c5d95cb2bc57ee2cc191c380
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/parse_resource/base.rb
@@ -491,7 +491,7 @@ def set_attribute(k, v)
else
v = v.to_pointer if v.respond_to?(:to_pointer)
end
- @unsaved_attributes[k.to_s] = v unless v == @attributes[k.to_s] || @unsaved_attributes[k.to_s]
+ @unsaved_attributes[k.to_s] = v unless v == @attributes[k.to_s] # || @unsaved_attributes[k.to_s]
@attributes[k.to_s] = v
v
end

0 comments on commit 8e3c4c6

Please sign in to comment.