aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2010-01-18 12:32:15 +0530
committerPratik Naik <pratiknaik@gmail.com>2010-01-18 18:56:55 +0530
commit8ba2902dd4c3e9a3715130c499d78c4fc79fbf16 (patch)
tree0a3a3de56b76776904beaa1246bf0c8687739d47 /activerecord
parent40c4a0036a690b2e0e3157520f1851efc77fbef7 (diff)
downloadrails-8ba2902dd4c3e9a3715130c499d78c4fc79fbf16.tar.gz
rails-8ba2902dd4c3e9a3715130c499d78c4fc79fbf16.tar.bz2
rails-8ba2902dd4c3e9a3715130c499d78c4fc79fbf16.zip
Fix the named_scope deprecation notice
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/named_scope.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/named_scope.rb b/activerecord/lib/active_record/named_scope.rb
index 42fc6c5f28..5c0cf10f4c 100644
--- a/activerecord/lib/active_record/named_scope.rb
+++ b/activerecord/lib/active_record/named_scope.rb
@@ -120,7 +120,7 @@ module ActiveRecord
end
def named_scope(*args, &block)
- ActiveSupport::Deprecation.warn("Base#named_scope has been deprecated, please use Base.scope instead.", caller)
+ ActiveSupport::Deprecation.warn("Base.named_scope has been deprecated, please use Base.scope instead.", caller)
scope(*args, &block)
end
end