From 5937bd02dee112646469848d7fe8a8bfcef5b4c1 Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Fri, 18 Jan 2013 12:30:47 +0000 Subject: Undeprecate the :extend option Suggested by @dhh. It doesn't affect the generated SQL, so seems reasonable to continue to allow it as an association option. --- activerecord/lib/active_record/associations/association_scope.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/lib/active_record/associations/association_scope.rb') diff --git a/activerecord/lib/active_record/associations/association_scope.rb b/activerecord/lib/active_record/associations/association_scope.rb index 1303822868..300f67959d 100644 --- a/activerecord/lib/active_record/associations/association_scope.rb +++ b/activerecord/lib/active_record/associations/association_scope.rb @@ -16,6 +16,7 @@ module ActiveRecord def scope scope = klass.unscoped scope.merge! eval_scope(klass, reflection.scope) if reflection.scope + scope.extending! Array(options[:extend]) add_constraints(scope) end -- cgit v1.2.3