Module: ActiveRecord::Scoping::Default
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
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. |
append_features, prepend_features |
DSL Calls
included
[ GitHub ]17 18 19 20 21
# File 'activerecord/lib/active_record/scoping/default.rb', line 17
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