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.3.3 app/models/sipity/comment.rb
hyrax-2.3.2 app/models/sipity/comment.rb
hyrax-2.3.1 app/models/sipity/comment.rb
hyrax-1.1.1 app/models/sipity/comment.rb
hyrax-2.3.0 app/models/sipity/comment.rb
hyrax-2.0.3 app/models/sipity/comment.rb
hyrax-2.2.4 app/models/sipity/comment.rb
hyrax-2.2.3 app/models/sipity/comment.rb
hyrax-2.2.2 app/models/sipity/comment.rb
hyrax-2.2.1 app/models/sipity/comment.rb
hyrax-2.2.0 app/models/sipity/comment.rb
hyrax-2.1.0 app/models/sipity/comment.rb
hyrax-2.1.0.rc4 app/models/sipity/comment.rb
hyrax-2.1.0.rc3 app/models/sipity/comment.rb
hyrax-2.1.0.rc2 app/models/sipity/comment.rb
hyrax-2.1.0.rc1 app/models/sipity/comment.rb
hyrax-1.1.0 app/models/sipity/comment.rb
hyrax-2.1.0.beta2 app/models/sipity/comment.rb
hyrax-2.0.2 app/models/sipity/comment.rb
hyrax-2.1.0.beta1 app/models/sipity/comment.rb