Module: Mongoid::Rateable::Ext::ClassMethods

Defined in:
lib/mongoid_rateable/rateable.rb

Instance Method Summary collapse

Instance Method Details

#rateable(options = {}) ⇒ Object



9
10
11
12
13
14
# File 'lib/mongoid_rateable/rateable.rb', line 9

def rateable options = {}
  class_eval do
    self.send :include, Mongoid::Rateable
    self.rate_config options
  end
end