Permalink
Browse files

reverted changes to set_attribute because it doesn't have access to s…

…elf.to_date_object
  • Loading branch information...
1 parent 6289e37 commit dd8a90331c9da00dc196419e7af3ed030f42650f @kevinvangelder kevinvangelder committed Oct 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/parse_resource/base.rb
@@ -491,7 +491,7 @@ def get_attribute(k)
def set_attribute(k, v)
if v.is_a?(Date) || v.is_a?(Time) || v.is_a?(DateTime)
- v = self.to_date_object(v)
+ v = {"__type" => "Date", "iso" => v.iso8601}
elsif v.respond_to?(:to_pointer)
v = v.to_pointer
end

0 comments on commit dd8a903

Please sign in to comment.