diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-06-27 20:44:39 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-06-27 20:44:39 -0700 |
commit | 9921eca51cfc72c58c127973f75d71febf01d526 (patch) | |
tree | 700aa0eb73aaf602bfae328a0794c414cb5e225a /activerecord/lib/active_record/named_scope.rb | |
parent | 4006e738ed4aeb7f99ebcff78f226508085b2854 (diff) | |
download | rails-9921eca51cfc72c58c127973f75d71febf01d526.tar.gz rails-9921eca51cfc72c58c127973f75d71febf01d526.tar.bz2 rails-9921eca51cfc72c58c127973f75d71febf01d526.zip |
remove the check for needs_type_condition? because ensure_proper_type will pick up the type column
Diffstat (limited to 'activerecord/lib/active_record/named_scope.rb')
-rw-r--r-- | activerecord/lib/active_record/named_scope.rb | 2 |
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 f9299434ec..35fb6fce03 100644 --- a/activerecord/lib/active_record/named_scope.rb +++ b/activerecord/lib/active_record/named_scope.rb @@ -48,7 +48,7 @@ module ActiveRecord current_scope.scope_for_create else # Return an empty hash in the simple case - return {} unless finder_needs_type_condition? || default_scopes.any? + return {} unless default_scopes.any? scope = relation.clone scope.default_scoped = true |