aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/nil.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/relations/nil.rb')
-rw-r--r--lib/arel/relations/nil.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/relations/nil.rb b/lib/arel/relations/nil.rb
index c34fe71473..2dcfb47233 100644
--- a/lib/arel/relations/nil.rb
+++ b/lib/arel/relations/nil.rb
@@ -4,7 +4,7 @@ module Arel
def name; '' end
def ==(other)
- Nil == other.class
+ Nil === other
end
end
end \ No newline at end of file