Permalink
Browse files

remove legacy support left

  • Loading branch information...
1 parent d6c437d commit e98702429af2699d52737430d62a5acd432aeb5c @nofxx committed Nov 23, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/symbolize/mongoid.rb
View
@@ -107,10 +107,9 @@ def symbolize *attr_names
end
if scopes
- scope_comm = lambda { |*args| scope(*args)}
values.each do |value|
if value[0].respond_to?(:to_sym)
- scope_comm.call value[0].to_sym, where({ attr_name => value[0].to_sym })
+ scope value[0].to_sym, where({ attr_name => value[0].to_sym })
end
end
end

0 comments on commit e987024

Please sign in to comment.