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