Class: ActiveRecord::Scoping::DefaultScope
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activerecord/lib/active_record/scoping/default.rb |
Class Method Summary
- .new(scope, all_queries = nil) ⇒ DefaultScope constructor
Instance Attribute Summary
- #all_queries readonly
- #scope readonly
Constructor Details
.new(scope, all_queries = nil) ⇒ DefaultScope
# File 'activerecord/lib/active_record/scoping/default.rb', line 8
def initialize(scope, all_queries = nil) @scope = scope @all_queries = all_queries end
Instance Attribute Details
#all_queries (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/scoping/default.rb', line 6
attr_reader :scope, :all_queries
#scope (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/scoping/default.rb', line 6
attr_reader :scope, :all_queries