Permalink
Browse files

Removed useless OR.

  • Loading branch information...
miloops committed Aug 7, 2009
1 parent 6b5fab9 commit d469ad8a49779b3f3d6711989bb334534e94f099
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations.rb
@@ -2184,7 +2184,7 @@ def association_join
]
else
""
- end || ''
+ end
join << %(AND %s) % [
klass.send(:type_condition, aliased_table_name)] unless klass.descends_from_active_record?

0 comments on commit d469ad8

Please sign in to comment.