Sha256: 684caa2da631e1c3b482c8f1cb6a52b82b817c552430acd9de19eb041246db97

Contents?: true

Size: 412 Bytes

Versions: 13

Compression:

Stored size: 412 Bytes

Contents

require 'dm-core'

DataMapper::Model.append_extensions(Recommendable::Rater::ClassMethods)
DataMapper::Model.append_extensions(Recommendable::Ratable::ClassMethods)

module Recommendable::Ratable::InstanceMethods
  def recommendable?() self.class.recommendable? end
end

DataMapper::Model.append_inclusions(Recommendable::Ratable::InstanceMethods)

Recommendable.configure { |config| config.orm = :data_mapper }

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
recommendable-2.2.2 lib/recommendable/orm/data_mapper.rb
recommendable-2.2.1 lib/recommendable/orm/data_mapper.rb
recommendable-2.2.0 lib/recommendable/orm/data_mapper.rb
recommendable-2.1.4 lib/recommendable/orm/data_mapper.rb
recommendable-2.1.3 lib/recommendable/orm/data_mapper.rb
recommendable-2.1.2 lib/recommendable/orm/data_mapper.rb
recommendable-2.1.1 lib/recommendable/orm/data_mapper.rb
recommendable-2.1.0.2 lib/recommendable/orm/data_mapper.rb
recommendable-2.1.0.1 lib/recommendable/orm/data_mapper.rb
recommendable-2.0.4.20130313 lib/recommendable/orm/data_mapper.rb
recommendable-2.0.4 lib/recommendable/orm/data_mapper.rb
recommendable-2.0.3 lib/recommendable/orm/data_mapper.rb
recommendable-2.0.2 lib/recommendable/orm/data_mapper.rb