Method: Babik::QuerySet::AbstractBase#all
- Defined in:
- lib/babik/queryset.rb
#all ⇒ ResultSet
Return a ResultSet with the ActiveRecord objects that match the condition given by the filters.
84 85 86 87 88 89 |
# File 'lib/babik/queryset.rb', line 84 def all sql_select = self.sql.select return @_projection.apply_transforms(self.class._execute_sql(sql_select)) if @_projection return .(self.class._execute_sql(sql_select)) if @model.find_by_sql(sql_select) end |