aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-03-21 20:25:51 +0000
committerJon Leighton <j@jonathanleighton.com>2012-03-21 20:25:51 +0000
commit884e5b755888591c9d45e8105267e6ce1f4ffc79 (patch)
tree98c985e277b347c0a7e1bed4e9a07442584c5f66 /activerecord
parent7c1275a005f8ed1820a93069c90d515b2f7a8e1a (diff)
downloadrails-884e5b755888591c9d45e8105267e6ce1f4ffc79.tar.gz
rails-884e5b755888591c9d45e8105267e6ce1f4ffc79.tar.bz2
rails-884e5b755888591c9d45e8105267e6ce1f4ffc79.zip
no need for cast
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/scoping/named.rb1
1 files changed, 0 insertions, 1 deletions
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?