Module: Rateable::Rater::ClassMethods

Defined in:
lib/rateable/rater.rb

Instance Method Summary collapse

Instance Method Details

#is_raterObject


8
9
10
11
# File 'lib/rateable/rater.rb', line 8

def is_rater
  has_many :ratings, :as => :rater, :class_name => "Rateable::Rate", :dependent => :destroy
  include Rateable::Rater::InstanceMethods
end

#is_rater?Boolean

Returns:

  • (Boolean)

13
14
15
# File 'lib/rateable/rater.rb', line 13

def is_rater? 
  true
end