aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines/sql/relations/relation.rb
diff options
context:
space:
mode:
authorErnie Miller <ernie@metautonomo.us>2010-03-24 16:22:15 -0400
committerErnie Miller <ernie@metautonomo.us>2010-05-07 13:04:42 -0400
commitdef75c7b54ccc18f3a8daf79b6144ddcb538d4e8 (patch)
tree7aaa63607fa9db942c7dd0a1fe32c2aa4650a118 /lib/arel/engines/sql/relations/relation.rb
parent7aff5ac78e874fa999b7edae26f5031dac017a6e (diff)
downloadrails-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/relations/relation.rb')
-rw-r--r--lib/arel/engines/sql/relations/relation.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/engines/sql/relations/relation.rb b/lib/arel/engines/sql/relations/relation.rb
index f372589af1..fc353fe0c8 100644
--- a/lib/arel/engines/sql/relations/relation.rb
+++ b/lib/arel/engines/sql/relations/relation.rb
@@ -21,6 +21,10 @@ module Arel
def inclusion_predicate_sql
"IN"
end
+
+ def exclusion_predicate_sql
+ "NOT IN"
+ end
def primary_key
connection_id = engine.connection.object_id