Sha256: 0d6cdc95cc54c1882823113e39da1330af4f11ff0179a5d85a2ed578210d9766
Contents?: true
Size: 392 Bytes
Versions: 7
Compression:
Stored size: 392 Bytes
Contents
module Approval class Comment < ApplicationRecord self.table_name = :approval_comments def self.define_user_association belongs_to :user, class_name: Approval.config.user_class_name 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
7 entries across 7 versions & 1 rubygems