lib/ajaxful_rating.rb
# Makes the necesary associations for the model to be rateable.
# And prepares some useful class/instance methods.
Makes the necesary associations for the model to be rateable.
And prepares some useful class/instance methods.
Makes the necesary associations for the model to be rateable . And prepares some useful class / instance methods .
def has_ajaxful_rates
        has_many :rates, :as => :rateable, :dependent => :destroy
        include Mimbles::AjaxfulRating::InstanceMethods
        extend Mimbles::AjaxfulRating::SingletonMethods
      end
def has_ajaxful_rates has_many :rates , :as => :rateable , :dependent => :destroy include Mimbles :: AjaxfulRating :: InstanceMethods extend Mimbles :: AjaxfulRating :: SingletonMethods end
Makes the necesary associations for the model to be rateable.
Makes the necesary associations for the model to be rateable .