aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/scoping.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-12-15 20:35:04 +0000
committerJon Leighton <j@jonathanleighton.com>2011-12-15 20:45:42 +0000
commit2b22564c4efaa63d4bbc006762838c4025c1bdca (patch)
treea88f076bb165c0ac76beaa43ddd4c36653bf9fed /activerecord/lib/active_record/scoping.rb
parent17ad71e5141eaa79bfb4aedc2f3a5b4abfa0baba (diff)
downloadrails-2b22564c4efaa63d4bbc006762838c4025c1bdca.tar.gz
rails-2b22564c4efaa63d4bbc006762838c4025c1bdca.tar.bz2
rails-2b22564c4efaa63d4bbc006762838c4025c1bdca.zip
Move DefaultScope and NamedScope under Scoping
Diffstat (limited to 'activerecord/lib/active_record/scoping.rb')
-rw-r--r--activerecord/lib/active_record/scoping.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/scoping.rb b/activerecord/lib/active_record/scoping.rb
index 50cd7d77e9..a8f5e96190 100644
--- a/activerecord/lib/active_record/scoping.rb
+++ b/activerecord/lib/active_record/scoping.rb
@@ -4,6 +4,11 @@ module ActiveRecord
module Scoping
extend ActiveSupport::Concern
+ included do
+ include Default
+ include Named
+ end
+
module ClassMethods
# with_scope lets you apply options to inner block incrementally. It takes a hash and the keys must be
# <tt>:find</tt> or <tt>:create</tt>. <tt>:find</tt> parameter is <tt>Relation</tt> while