Merge pull request #714 from ride/to-json-as-json

Define as_json instead of to_json
This commit is contained in:
Carlos Antonio da Silva 2014-11-03 22:00:36 -02:00
commit 8374396b88

View File

@ -16,8 +16,8 @@ module ActiveModel
raise NotImplementedError, 'This is an abstract method. Should be implemented at the concrete adapter.' raise NotImplementedError, 'This is an abstract method. Should be implemented at the concrete adapter.'
end end
def to_json(options = {}) def as_json(options = {})
serializable_hash(options).to_json serializable_hash(options)
end end
end end
end end