diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2010-01-16 04:17:23 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-01-16 04:21:18 +0530 |
commit | 2d0bc08a7e1a0ecee577674deba2c0a17fe665e4 (patch) | |
tree | 965b9ecb3f497a33e1291b83e0b9a369a738df19 /activerecord/lib/active_record/associations | |
parent | 99dd107760191b834d0a97e89c5ae991c088a4a8 (diff) | |
download | rails-2d0bc08a7e1a0ecee577674deba2c0a17fe665e4.tar.gz rails-2d0bc08a7e1a0ecee577674deba2c0a17fe665e4.tar.bz2 rails-2d0bc08a7e1a0ecee577674deba2c0a17fe665e4.zip |
Make type_condition return Arel predicate and not a string condition
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r-- | activerecord/lib/active_record/associations/through_association_scope.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/through_association_scope.rb b/activerecord/lib/active_record/associations/through_association_scope.rb index 1001199daa..6f0f698f1e 100644 --- a/activerecord/lib/active_record/associations/through_association_scope.rb +++ b/activerecord/lib/active_record/associations/through_association_scope.rb @@ -144,7 +144,7 @@ module ActiveRecord end def build_sti_condition - @reflection.through_reflection.klass.send(:type_condition) + @reflection.through_reflection.klass.send(:type_condition).to_sql end alias_method :sql_conditions, :conditions |