From 89b354bf97d0a981376d36f2f8a7ba6a87fe2aa8 Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Sun, 16 Mar 2008 20:47:02 -0700 Subject: added attribute.eq(nil) - produces attribute IS NULL --- lib/active_relation/extensions/object.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/active_relation/extensions/object.rb') diff --git a/lib/active_relation/extensions/object.rb b/lib/active_relation/extensions/object.rb index cd51543c91..25cef989a4 100644 --- a/lib/active_relation/extensions/object.rb +++ b/lib/active_relation/extensions/object.rb @@ -7,6 +7,10 @@ class Object formatter.scalar self end + def equality_predicate_sql + '=' + end + def metaclass class << self self -- cgit v1.2.3