Sha256: 3c8dfa7d34c41ba9720b352ac4de39bd86fbfbc8858e71429379512c4b9be551
Contents?: true
Size: 526 Bytes
Versions: 3
Compression:
Stored size: 526 Bytes
Contents
module Formol class Topic::Subscription < ActiveRecord::Base #Security attr_protected :subscriber_id, :topic_id #Associations belongs_to :subscriber, :class_name => Formol.config.user_class belongs_to :topic #Validations validates :subscriber, :presence => true validates :topic, :presence => true validates :subscriber_id, :uniqueness => { :scope => :topic_id, :allow_blank => true } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
formol-0.0.6 | app/models/formol/topic/subscription.rb |
formol-0.0.5 | app/models/formol/topic/subscription.rb |
formol-0.0.4 | app/models/formol/topic/subscription.rb |