Class: ActiveRecord::Scoping::DefaultScope
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/scoping/default.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#all_queries ⇒ Object
readonly
Returns the value of attribute all_queries.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(scope, all_queries = nil) ⇒ DefaultScope
constructor
A new instance of DefaultScope.
Constructor Details
#initialize(scope, all_queries = nil) ⇒ DefaultScope
Returns a new instance of DefaultScope.
8 9 10 11 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/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 ⇒ Object (readonly)
Returns the value of attribute all_queries.
6 7 8 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/scoping/default.rb', line 6 def all_queries @all_queries end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
6 7 8 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/scoping/default.rb', line 6 def scope @scope end |