class ActiveRecord::DataIntegrity::Cop

Checking cop base class

Attributes

model[R]

Public Class Methods

cop_name() click to toggle source
# File lib/active_record/data_integrity/cop/cop.rb, line 14
def self.cop_name
  name.gsub('ActiveRecord::DataIntegrity::', '').gsub('::', '/')
end
new(model) click to toggle source
# File lib/active_record/data_integrity/cop/cop.rb, line 10
def initialize(model)
  @model = model
end

Public Instance Methods

log(msg) click to toggle source
# File lib/active_record/data_integrity/cop/cop.rb, line 18
def log(msg)
  ActiveRecord::DataIntegrity::Collector.log(self, msg)
end
progress(subresult, false_char = 'E') click to toggle source
# File lib/active_record/data_integrity/cop/cop.rb, line 22
def progress(subresult, false_char = 'E')
  ActiveRecord::DataIntegrity::Collector.progress(
    self,
    subresult ? Rainbow('.').green : Rainbow(false_char).red
  )
end