Module: Lyra::StrictDataAccessClassMethods

Defined in:
lib/lyra/strict_data_access.rb

Overview

Class methods for bulk operations that bypass callbacks. These are called directly on the model class (not on relations).

Instance Method Summary collapse

Instance Method Details

#insert_all(attributes, **options) ⇒ Object



172
173
174
175
# File 'lib/lyra/strict_data_access.rb', line 172

def insert_all(attributes, **options)
  raise_strict_class_violation!(:insert_all)
  super
end

#insert_all!(attributes, **options) ⇒ Object



177
178
179
180
# File 'lib/lyra/strict_data_access.rb', line 177

def insert_all!(attributes, **options)
  raise_strict_class_violation!(:insert_all!)
  super
end

#upsert_all(attributes, **options) ⇒ Object



182
183
184
185
# File 'lib/lyra/strict_data_access.rb', line 182

def upsert_all(attributes, **options)
  raise_strict_class_violation!(:upsert_all)
  super
end