Module: FrozenRecord
- Defined in:
- lib/frozen_record/base.rb,
lib/frozen_record/index.rb,
lib/frozen_record/scope.rb,
lib/frozen_record/compact.rb,
lib/frozen_record/minimal.rb,
lib/frozen_record/railtie.rb,
lib/frozen_record/version.rb,
lib/frozen_record/backends.rb,
lib/frozen_record/test_helper.rb,
lib/frozen_record/backends/json.rb,
lib/frozen_record/backends/yaml.rb,
lib/frozen_record/serialization.rb
Defined Under Namespace
Modules: Backends, Compact, TestHelper Classes: Base, Index, Railtie, Scope, UniqueIndex
Constant Summary collapse
- SlowQuery =
Class.new(StandardError)
- RecordNotFound =
Class.new(StandardError)
- VERSION =
'0.27.4'
Class Attribute Summary collapse
-
.deprecated_yaml_erb_backend ⇒ Object
Returns the value of attribute deprecated_yaml_erb_backend.
-
.enforce_max_records_scan ⇒ Object
Returns the value of attribute enforce_max_records_scan.
Class Method Summary collapse
Class Attribute Details
.deprecated_yaml_erb_backend ⇒ Object
Returns the value of attribute deprecated_yaml_erb_backend.
17 18 19 |
# File 'lib/frozen_record/minimal.rb', line 17 def deprecated_yaml_erb_backend @deprecated_yaml_erb_backend end |
.enforce_max_records_scan ⇒ Object
Returns the value of attribute enforce_max_records_scan.
10 11 12 |
# File 'lib/frozen_record/base.rb', line 10 def enforce_max_records_scan @enforce_max_records_scan end |
Class Method Details
.eager_load! ⇒ Object
19 20 21 |
# File 'lib/frozen_record/minimal.rb', line 19 def eager_load! Base.descendants.each(&:eager_load!) end |
.ignore_max_records_scan ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/frozen_record/base.rb', line 12 def ignore_max_records_scan previous = enforce_max_records_scan self.enforce_max_records_scan = false yield ensure self.enforce_max_records_scan = previous end |