Sha256: 6c3d2541f4e2f8216c8cb4fa487b68aeea4e6dc40c0677f232ee3007687d2b24
Contents?: true
Size: 363 Bytes
Versions: 3
Compression:
Stored size: 363 Bytes
Contents
module Recommendable class Ignore < ActiveRecord::Base belongs_to :user, :class_name => Recommendable.user_class.to_s belongs_to :ignoreable, :polymorphic => :true validates :user_id, :uniqueness => { :scope => [:ignoreable_id, :ignoreable_type], :message => "has already ignored this item" } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
recommendable-0.1.4 | app/models/recommendable/ignore.rb |
recommendable-0.1.3 | app/models/recommendable/ignore.rb |
recommendable-0.1.2 | app/models/recommendable/ignore.rb |