Module: DataMapper::Resource

Defined in:
lib/xapian_db/model_extenders/datamapper.rb

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object


8
9
10
11
12
13
14
# File 'lib/xapian_db/model_extenders/datamapper.rb', line 8

def self.included(model)
  included_dm model
  if XapianDb::DocumentBlueprint.configured? model.name
    blueprint = XapianDb::DocumentBlueprint.blueprint_for model.name
    blueprint._adapter.add_class_helper_methods_to model
  end
end

.included_dmObject


5
# File 'lib/xapian_db/model_extenders/datamapper.rb', line 5

alias_method :included_dm, :included