Module: RPCMapper::Serialization

Included in:
Base
Defined in:
lib/rpc_mapper/serialization.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



38
39
40
41
42
43
44
45
46
# File 'lib/rpc_mapper/serialization.rb', line 38

def self.included(receiver)
  receiver.class_eval do
    class_inheritable_accessor :serialized_attributes
    self.serialized_attributes = []
  end

  receiver.extend         ClassMethods
  receiver.send :include, InstanceMethods
end