diff options
Diffstat (limited to 'lib/active_relation/predicates.rb')
-rw-r--r-- | lib/active_relation/predicates.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/active_relation/predicates.rb b/lib/active_relation/predicates.rb index 6fcef3cfd6..22fbcd9f0b 100644 --- a/lib/active_relation/predicates.rb +++ b/lib/active_relation/predicates.rb @@ -41,7 +41,7 @@ module ActiveRelation end def predicate_sql - '=' + operand2.equality_predicate_sql end end @@ -74,6 +74,8 @@ module ActiveRelation end class In < Binary - delegate :predicate_sql, :to => :operand2 + def predicate_sql + operand2.inclusion_predicate_sql + end end end
\ No newline at end of file |