Module: Mutils::Serialization::SerializationIncludes

Included in:
BaseSerializer
Defined in:
lib/mutils/serialization/serialization_includes.rb

Overview

Module SerializationIncludes

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/mutils/serialization/serialization_includes.rb', line 8

def self.included(base)
  base.class_eval do
    class << self
      attr_accessor :serializer_name,
                    :include_root,
                    :relationships,
                    :attributes_to_serialize,
                    :attributes_to_serialize_blocks
    end
  end
end