Define as_json instead of to_json

This commit is contained in:
Guillermo Iguaran 2014-11-03 17:38:58 -05:00
parent 80ece39dd9
commit f5411f045f

View File

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