audited icon indicating copy to clipboard operation
audited copied to clipboard

can't disable 'comment_required' in child class

Open saiqulhaq opened this issue 6 years ago • 0 comments

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

saiqulhaq avatar Jul 14 '19 07:07 saiqulhaq