mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Move meta/meta_key handling inside adapter.
This commit is contained in:
@@ -121,15 +121,13 @@ module ActiveModel
|
||||
end
|
||||
end
|
||||
|
||||
attr_accessor :object, :root, :meta, :meta_key, :scope
|
||||
attr_accessor :object, :root, :scope
|
||||
class_attribute :_type, instance_writer: false
|
||||
|
||||
def initialize(object, options = {})
|
||||
self.object = object
|
||||
self.instance_options = options
|
||||
self.root = instance_options[:root]
|
||||
self.meta = instance_options[:meta]
|
||||
self.meta_key = instance_options[:meta_key]
|
||||
self.scope = instance_options[:scope]
|
||||
|
||||
scope_name = instance_options[:scope_name]
|
||||
|
||||
Reference in New Issue
Block a user