class AttrMasker::Performer::ActiveRecord

Public Instance Methods

all_models() click to toggle source
# File lib/attr_masker/performer.rb, line 80
def all_models
  ::ActiveRecord::Base.descendants.select(&:table_exists?)
end
dependencies_available?() click to toggle source
# File lib/attr_masker/performer.rb, line 76
def dependencies_available?
  defined? ::ActiveRecord
end
make_update(instance, updates) click to toggle source
# File lib/attr_masker/performer.rb, line 86
def make_update(instance, updates)
  instance.class.all.unscoped.where(id: instance.id).update_all(updates)
end