audited
audited copied to clipboard
can't disable 'comment_required' in child class
I have Base class ApplicationRecord with comment_required = true
and there is a case that I need to disable the presence comment, but instance of child class still require a comment when I am trying to make changes
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
audited comment_required: true
end
class User < ApplicationRecord
audited comment_required: false
end