mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Merge pull request #714 from ride/to-json-as-json
Define as_json instead of to_json
This commit is contained in:
commit
8374396b88
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user