mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
16 lines
468 B
Ruby
16 lines
468 B
Ruby
module ActiveModel
|
|
class Serializer
|
|
module Adapter
|
|
class Attributes < DelegateClass(ActiveModelSerializers::Adapter::Attributes)
|
|
def initialize(serializer, options = {})
|
|
super(ActiveModelSerializers::Adapter::Attributes.new(serializer, options))
|
|
end
|
|
class << self
|
|
extend ActiveModelSerializers::Deprecate
|
|
deprecate :new, 'ActiveModelSerializers::Adapter::Json.'
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|