Sha256: 4b2d30502257174506feecbdc3024e9c82a935e30c5dad025e3f94d3fb45cc6a

Contents?: true

Size: 353 Bytes

Versions: 71

Compression:

Stored size: 353 Bytes

Contents

module Sipity
  # Represents a "comment" placed by the given :agent in regards to the give :entity
  class Comment < ActiveRecord::Base
    self.table_name = 'sipity_comments'

    belongs_to :agent, class_name: 'Sipity::Agent'
    belongs_to :entity, class_name: 'Sipity::Entity'

    def name_of_commentor
      agent.proxy_for.to_s
    end
  end
end

Version data entries

71 entries across 71 versions & 3 rubygems

Version Path
hyrax-2.9.6 app/models/sipity/comment.rb
hyrax-2.9.5 app/models/sipity/comment.rb
hyrax-2.9.4 app/models/sipity/comment.rb
hyrax-2.9.3 app/models/sipity/comment.rb
hyrax-2.9.2 app/models/sipity/comment.rb
hyrax-2.9.1 app/models/sipity/comment.rb
hyrax-2.9.0 app/models/sipity/comment.rb
hyrax-2.8.0 app/models/sipity/comment.rb
hyrax-2.7.2 app/models/sipity/comment.rb
hyrax-2.7.1 app/models/sipity/comment.rb
hyrax-2.7.0 app/models/sipity/comment.rb
hyrax-2.6.0 app/models/sipity/comment.rb
hyrax-3.0.0.pre.rc1 app/models/sipity/comment.rb
hyrax-3.0.0.pre.beta3 app/models/sipity/comment.rb
hyrax-2.5.1 app/models/sipity/comment.rb
hyrax-2.5.0 app/models/sipity/comment.rb
hyrax-3.0.0.pre.beta2 app/models/sipity/comment.rb
hyrax-2.4.1 app/models/sipity/comment.rb
hyrax-3.0.0.pre.beta1 app/models/sipity/comment.rb
hyrax-2.4.0 app/models/sipity/comment.rb