diff options
author | Ernie Miller <ernie@metautonomo.us> | 2010-03-24 16:22:15 -0400 |
---|---|---|
committer | Ernie Miller <ernie@metautonomo.us> | 2010-05-07 13:04:42 -0400 |
commit | def75c7b54ccc18f3a8daf79b6144ddcb538d4e8 (patch) | |
tree | 7aaa63607fa9db942c7dd0a1fe32c2aa4650a118 /lib/arel/engines/sql/core_extensions/array.rb | |
parent | 7aff5ac78e874fa999b7edae26f5031dac017a6e (diff) | |
download | rails-def75c7b54ccc18f3a8daf79b6144ddcb538d4e8.tar.gz rails-def75c7b54ccc18f3a8daf79b6144ddcb538d4e8.tar.bz2 rails-def75c7b54ccc18f3a8daf79b6144ddcb538d4e8.zip |
Added NotMatch and NotIn predicates, made Not derive from Equality (reverted later)
Diffstat (limited to 'lib/arel/engines/sql/core_extensions/array.rb')
-rw-r--r-- | lib/arel/engines/sql/core_extensions/array.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/engines/sql/core_extensions/array.rb b/lib/arel/engines/sql/core_extensions/array.rb index 72f579b7eb..412479dc83 100644 --- a/lib/arel/engines/sql/core_extensions/array.rb +++ b/lib/arel/engines/sql/core_extensions/array.rb @@ -12,6 +12,10 @@ module Arel def inclusion_predicate_sql "IN" end + + def exclusion_predicate_sql + "NOT IN" + end Array.send(:include, self) end |