Module: ROM::SQL::Plugin::Nullify
- Defined in:
- lib/rom/sql/plugin/nullify.rb
Overview
Nullify relation by
Instance Method Summary collapse
-
#nullify ⇒ SQL::Relation
Returns a relation that will never issue a query to the database.
Instance Method Details
#nullify ⇒ SQL::Relation
Returns a relation that will never issue a query to the database. It implements the null object pattern for relations.
16 17 18 |
# File 'lib/rom/sql/plugin/nullify.rb', line 16 def nullify where { `1 = 0` } end |