Sha256: 249b06847b048783de891d09b7de7851c4e77d979a9aca2374adb752c1357836

Contents?: true

Size: 243 Bytes

Versions: 7

Compression:

Stored size: 243 Bytes

Contents

module FlexibleFeeds
  class EventJoin < ActiveRecord::Base
    belongs_to :event
    belongs_to :feed

    validates :event, presence: true
    validates :feed, presence: true
    validates :sticky, inclusion: { in: [true, false] }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
flexible_feeds-0.3.4 app/models/flexible_feeds/event_join.rb
flexible_feeds-0.3.3 app/models/flexible_feeds/event_join.rb
flexible_feeds-0.3.2 app/models/flexible_feeds/event_join.rb
flexible_feeds-0.3.1 app/models/flexible_feeds/event_join.rb
flexible_feeds-0.3.0 app/models/flexible_feeds/event_join.rb
flexible_feeds-0.2.1 app/models/flexible_feeds/event_join.rb
flexible_feeds-0.1.0 app/models/flexible_feeds/event_join.rb