diff options
Diffstat (limited to 'lib/arel/relations/nil.rb')
-rw-r--r-- | lib/arel/relations/nil.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/arel/relations/nil.rb b/lib/arel/relations/nil.rb new file mode 100644 index 0000000000..3c1d413953 --- /dev/null +++ b/lib/arel/relations/nil.rb @@ -0,0 +1,12 @@ +module Arel + class Nil < Relation + def table_sql; '' end + + def to_s; '' end + + def ==(other) + self.class == other.class + end + end + +end
\ No newline at end of file |