aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/scoping/named.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2015-03-12 09:36:14 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2015-03-12 09:36:14 -0300
commit6b5f815cf832524ebcf7585a44bbb7e291423c71 (patch)
tree5544721aa8e8fd104aeae68a757de011d8599ae8 /activerecord/lib/active_record/scoping/named.rb
parent044f9ab7a4d6646ddce4560bb83b58cdc0baa751 (diff)
parentc1deb81cd005d7091b680ec2089b9b8dba41325f (diff)
downloadrails-6b5f815cf832524ebcf7585a44bbb7e291423c71.tar.gz
rails-6b5f815cf832524ebcf7585a44bbb7e291423c71.tar.bz2
rails-6b5f815cf832524ebcf7585a44bbb7e291423c71.zip
Merge pull request #19301 from Empact/default-scopes
Isolate access to .default_scopes in ActiveRecord::Scoping::Default
Diffstat (limited to 'activerecord/lib/active_record/scoping/named.rb')
-rw-r--r--activerecord/lib/active_record/scoping/named.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/activerecord/lib/active_record/scoping/named.rb b/activerecord/lib/active_record/scoping/named.rb
index 43c7b1c574..7b62626896 100644
--- a/activerecord/lib/active_record/scoping/named.rb
+++ b/activerecord/lib/active_record/scoping/named.rb
@@ -39,17 +39,6 @@ module ActiveRecord
end
end
- # Collects attributes from scopes that should be applied when creating
- # an AR instance for the particular class this is called on.
- def scope_attributes # :nodoc:
- all.scope_for_create
- end
-
- # Are there default attributes associated with this scope?
- def scope_attributes? # :nodoc:
- current_scope || default_scopes.any?
- end
-
# Adds a class method for retrieving and querying objects. A \scope
# represents a narrowing of a database query, such as
# <tt>where(color: :red).select('shirts.*').includes(:washing_instructions)</tt>.