mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 14:29:31 +00:00
16 lines
270 B
Ruby
16 lines
270 B
Ruby
module ActiveModel
|
|
class Serializer
|
|
class Adapter
|
|
class NullAdapter < Adapter
|
|
def serializable_hash(options = {})
|
|
{}
|
|
end
|
|
|
|
def to_json(options = {})
|
|
serializable_hash.to_json
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|