Skip to content

Commit

Permalink
fixed bug in setter function where unsaved attributes were not being …
Browse files Browse the repository at this point in the history
…updated in some cases
  • Loading branch information
kevinvangelder committed Sep 24, 2012
1 parent 760bf33 commit 8e3c4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parse_resource/base.rb
Expand Up @@ -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
Expand Down

0 comments on commit 8e3c4c6

Please sign in to comment.