Sha256: 25135e69aefccdef5e6996d779714a6f38e8fbc7bdba80879848558cb0b4e302

Contents?: true

Size: 247 Bytes

Versions: 12

Compression:

Stored size: 247 Bytes

Contents

module Dorsale
  class Comment < ActiveRecord::Base
    belongs_to :user,        polymorphic: true
    belongs_to :commentable, polymorphic: true
    
    validates :commentable, presence: true
    validates :text,        presence: true
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dorsale-1.2.6 app/models/dorsale/comment.rb
dorsale-1.2.5 app/models/dorsale/comment.rb
dorsale-1.2.4 app/models/dorsale/comment.rb
dorsale-1.2.3 app/models/dorsale/comment.rb
dorsale-1.2.2 app/models/dorsale/comment.rb
dorsale-1.2.1 app/models/dorsale/comment.rb
dorsale-1.2.0 app/models/dorsale/comment.rb
dorsale-1.1.4 app/models/dorsale/comment.rb
dorsale-1.1.3 app/models/dorsale/comment.rb
dorsale-1.1.2 app/models/dorsale/comment.rb
dorsale-1.1.1 app/models/dorsale/comment.rb
dorsale-1.1.0 app/models/dorsale/comment.rb