Module: Babik::QuerySet::NoneQuerySet
- Included in:
- AbstractBase
- Defined in:
- lib/babik/queryset/mixins/none.rb
Overview
None functionality for QuerySet
Instance Method Summary collapse
-
#none ⇒ ResultSet
Return an empty ActiveRecord ResultSet.
Instance Method Details
#none ⇒ ResultSet
Return an empty ActiveRecord ResultSet
10 11 12 |
# File 'lib/babik/queryset/mixins/none.rb', line 10 def none @model.find_by_sql("SELECT * FROM #{@model.table_name} WHERE 1 = 0") end |