- Defined in:
Used in preference over DataMapper::Resource to add MongoDB-specific functionality to models.
Class Method Summary collapse
Class Method Details
6 7 8 9 10 11 12 13
# File 'lib/dm-mongo-adapter/resource.rb', line 6 def self.included(model) model.send(:include, ::Resource) model.send(:include, ) # Needs to be after the inclusion of DM::Resource so as to overwrite # methods added by DM::Model. model.extend() end