From 884e5b755888591c9d45e8105267e6ce1f4ffc79 Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Wed, 21 Mar 2012 20:25:51 +0000 Subject: no need for cast --- activerecord/lib/active_record/scoping/named.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/scoping/named.rb b/activerecord/lib/active_record/scoping/named.rb index 22f18afe6f..c7c3ee2b06 100644 --- a/activerecord/lib/active_record/scoping/named.rb +++ b/activerecord/lib/active_record/scoping/named.rb @@ -172,7 +172,6 @@ module ActiveRecord # Article.featured.titles def scope(name, scope_options = {}) - name = name.to_sym valid_scope_name?(name) extension = Module.new(&Proc.new) if block_given? -- cgit v1.2.3