module Datamappify::Repository
Attributes
data_mapper[RW]
@return [Data::Mapper]
states[R]
@return [UnitOfWork::PersistentStates]
Public Class Methods
included(klass)
click to toggle source
# 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
new()
click to toggle source
# File lib/datamappify/repository.rb, line 35 def initialize @states = UnitOfWork::PersistentStates.new end