Method: AnyQuery::Query#with_single

Defined in:
lib/any_query/query.rb

#with_singleObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



19
20
21
# File 'lib/any_query/query.rb', line 19

def with_single
  dup.joins!(:show, :id, :id, into: :single, as: :single, strategy: :single)
end