Sha256: 6e3354fb0ceb123364143e6bb96bcf1a337b56f8b6baa3366f56d86a26f31595
Contents?: true
Size: 383 Bytes
Versions: 7
Compression:
Stored size: 383 Bytes
Contents
# frozen_string_literal: true 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
7 entries across 7 versions & 1 rubygems