Sha256: ed56825117bbd7ec344964bbf5c1f5158ea012ae7486bf900f28c6f74578fbb4
Contents?: true
Size: 364 Bytes
Versions: 2
Compression:
Stored size: 364 Bytes
Contents
class Feed < ActiveRecord::Base include MyFeeds::Identity attr_accessible :source_id, :source_type, :event, :target_id, :target_type #verify event uniqueness #validates :event, uniqueness: {scope: [:source_id, :source_type, :target_id, :target_type]}, :if => :target_id belongs_to :source, polymorphic: true belongs_to :target, polymorphic: true end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
my_feeds-1.0.0 | lib/generators/templates/feed.rb |
my_feeds-1.0.0 | spec/models/feed.rb |