Sha256: 950f5be6283eeaf1e87067a2be5e8eb9d05853baa56a30cba4a57ebf35503255
Contents?: true
Size: 600 Bytes
Versions: 26
Compression:
Stored size: 600 Bytes
Contents
module ActiveRecord module Acts #:nodoc: module MuckRecommendations # :nodoc: def self.included(base) base.extend(ClassMethods) end module ClassMethods # +has_muck_recommendations+ gives the class it is called on personalized recommendations def has_muck_recommendations has_many :personal_recommendations, :as => :personal_recommendable end def acts_as_muck_recommendation has_many :recommended_to, :as => :destination, :class_name => 'PersonalRecommendation' end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems