Module: Protoable

Defined in:
lib/protobuf/activerecord/protoable.rb,
lib/protobuf/activerecord/protoable/scope.rb,
lib/protobuf/activerecord/protoable/errors.rb,
lib/protobuf/activerecord/protoable/fields.rb,
lib/protobuf/activerecord/protoable/convert.rb,
lib/protobuf/activerecord/protoable/persistence.rb,
lib/protobuf/activerecord/protoable/serialization.rb

Defined Under Namespace

Modules: Convert, Fields, Persistence, Scope, Serialization Classes: AttributeConverterError, AttributeTransformerError, FieldConverterError, FieldTransformerError, ProtoableError, SearchScopeError

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/protobuf/activerecord/protoable.rb', line 9

def self.included(klass)
  klass.extend Protoable::Fields
  klass.extend Protoable::Scope

  klass.__send__(:include, Protoable::Convert)
  klass.__send__(:include, Protoable::Persistence)
  klass.__send__(:include, Protoable::Serialization)
end