Sha256: 1ae725cb6a5f6519d39b12b69381948bc675ad2797e91fc93f25bf9f9d308817
Contents?: true
Size: 430 Bytes
Versions: 4
Compression:
Stored size: 430 Bytes
Contents
module Approval class Comment < ::ActiveRecord::Base self.table_name_prefix = "approval_".freeze class << self def define_user_association belongs_to :user, class_name: Approval.config.user_class_name end end belongs_to :request, class_name: :"Approval::Request", inverse_of: :comments validates :content, presence: true, length: { maximum: Approval.config.comment_maximum } end end
Version data entries
4 entries across 4 versions & 1 rubygems