Module: Ephemeron::Validators::StoreElement

Defined in:
lib/ephemeron/validators/store_element.rb

Class Method Summary collapse

Class Method Details

.call(model) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/ephemeron/validators/store_element.rb', line 8

def call(model)
  return false if Logger.logs.last == Logger::Convert.call(nil, :proxy_start)
  return false unless model.is_a?(ActiveRecord::Base)
  return false if Settings.skipped_models.include? model.class.name

  true
end