module Datamappify::Repository::LazyChecking

Public Instance Methods

assign_to_entity() click to toggle source

Assign the repository itself to the lazy entity

@return [void]

# File lib/datamappify/repository/lazy_checking.rb, line 14
def assign_to_entity
  data_mapper.entity_class.repository = self
end
lazy_load?() click to toggle source

Is the repository for an entity that requires lazy loading?

@return [Boolean]

# File lib/datamappify/repository/lazy_checking.rb, line 7
def lazy_load?
  data_mapper.entity_class.included_modules.include?(Datamappify::Lazy)
end