mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 14:56:50 +00:00
Define as_json instead of to_json
This commit is contained in:
parent
80ece39dd9
commit
f5411f045f
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user