Method: Datamappify::Repository.included

Defined in:
lib/datamappify/repository.rb

.included(klass) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/datamappify/repository.rb', line 16

def self.included(klass)
  klass.class_eval do
    include Singleton
    extend  SingletonWrapper

    class_attribute :current_group_options
    self.current_group_options = {}

    self.data_mapper = Data::Mapper.new

    include LazyChecking
    extend  MappingDSL
    include QueryMethods
    extend  Inheritable
  end
end