Permalink
Browse files

Use to_json instead of rails_to_json

  • Loading branch information...
1 parent a69ee11 commit 01f820c3b25bfb1ec6a25c4b9668ba0fb7bc75d5 @jeremy jeremy committed Jun 8, 2009
@@ -1184,7 +1184,7 @@ def respond_to?(method)
true
end
- def rails_to_json(options = nil)
+ def to_json(options = nil)
@variable
end
@@ -80,9 +80,6 @@ def to_json(options = {})
end
end
- # For compatibility with ActiveSupport::JSON.encode
- alias rails_to_json to_json
-
def from_json(json)
self.attributes = ActiveSupport::JSON.decode(json)
self
@@ -896,9 +896,6 @@ def as_json(options = nil)
attributes.as_json(options)
end
- # For compatibility with ActiveSupport::JSON.encode
- alias rails_to_json to_json
-
# Returns the serialized string representation of the resource in the configured
# serialization format specified in ActiveResource::Base.format. The options
# applicable depend on the configured encoding format.

0 comments on commit 01f820c

Please sign in to comment.