Module: ActiveRecord::Scoping::Default
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Extension / Inclusion / Inheritance Descendants | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::ActiveSupport::Concern
|
|
Defined in: | activerecord/lib/active_record/scoping/default.rb |
Class Method Summary
::ActiveSupport::Concern
- Extended
class_methods | Define class methods from given block. |
included | Evaluate given block in context of base class, so that you can write class macros here. |
prepended | Evaluate given block in context of base class, so that you can write class macros here. |
DSL Calls
included
[ GitHub ]8 9 10 11 12
# File 'activerecord/lib/active_record/scoping/default.rb', line 8
included do # Stores the default scope for the class. class_attribute :default_scopes, instance_writer: false, instance_predicate: false, default: [] class_attribute :default_scope_override, instance_writer: false, instance_predicate: false, default: nil end