Module: Babik::QuerySet::NoneQuerySet

Included in:
AbstractBase
Defined in:
lib/babik/queryset/mixins/none.rb

Overview

None functionality for QuerySet

Instance Method Summary collapse

Instance Method Details

#noneResultSet

Return an empty ActiveRecord ResultSet

Returns:

  • (ResultSet)

    Empty result set.



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