Sha256: 1eaa45fd7ee7cff9040508dc066e0c2a5994ad1a66bb823cd64f7e3ed756d82c
Contents?: true
Size: 347 Bytes
Versions: 3
Compression:
Stored size: 347 Bytes
Contents
module FlexibleFeeds class EventJoin < ActiveRecord::Base belongs_to :event, class_name: "FlexibleFeeds::Event" belongs_to :feed, class_name: "FlexibleFeeds::Feed" validates :event, presence: true, uniqueness: { scope: :feed_id } validates :feed, presence: true validates :sticky, inclusion: { in: [true, false] } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
flexible_feeds-0.4.0 | app/models/flexible_feeds/event_join.rb |
flexible_feeds-0.3.6 | app/models/flexible_feeds/event_join.rb |
flexible_feeds-0.3.5 | app/models/flexible_feeds/event_join.rb |