Sha256: a578f852ab9ae0ec60e95eb9920ae6419ca4784715bb58bc5836b03cbcc1a440

Contents?: true

Size: 244 Bytes

Versions: 83

Compression:

Stored size: 244 Bytes

Contents

module Tenon
  class CommentSubscriber < ActiveRecord::Base
    validates_presence_of :email, :commentable
    validates_uniqueness_of :email, scope: [:commentable_id, :commentable_type]
    belongs_to :commentable, polymorphic: true
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
tenon-1.1.8 app/models/tenon/comment_subscriber.rb
tenon-1.1.7 app/models/tenon/comment_subscriber.rb
tenon-1.1.6 app/models/tenon/comment_subscriber.rb
tenon-1.1.5 app/models/tenon/comment_subscriber.rb
tenon-1.1.4 app/models/tenon/comment_subscriber.rb
tenon-1.1.3 app/models/tenon/comment_subscriber.rb
tenon-1.1.2 app/models/tenon/comment_subscriber.rb
tenon-1.1.1 app/models/tenon/comment_subscriber.rb
tenon-1.0.76 app/models/tenon/comment_subscriber.rb
tenon-1.0.75 app/models/tenon/comment_subscriber.rb
tenon-1.0.74 app/models/tenon/comment_subscriber.rb
tenon-1.0.73 app/models/tenon/comment_subscriber.rb
tenon-1.0.72 app/models/tenon/comment_subscriber.rb
tenon-1.0.71 app/models/tenon/comment_subscriber.rb
tenon-1.0.70 app/models/tenon/comment_subscriber.rb
tenon-1.0.69 app/models/tenon/comment_subscriber.rb
tenon-1.0.68 app/models/tenon/comment_subscriber.rb
tenon-1.0.67 app/models/tenon/comment_subscriber.rb
tenon-1.0.66 app/models/tenon/comment_subscriber.rb
tenon-1.0.65 app/models/tenon/comment_subscriber.rb