app/queries/answers_with_corrections_query.rb
# Returns answers with their corrections.
#
# @note corrections are obtained via {CorrectionsForUserQuery}.
#
# @return [Array<AnswerWithCorrections>]
Returns answers with their corrections.
Returns answers with their corrections .
def results
    relation = @answers
    answers.tap do |object|
      FORWARDED_METHODS.each do |method|
        object.define_singleton_method(method) { relation.public_send(method) }
      end
    end
  end
def results relation = @answers answers . tap do | object | FORWARDED_METHODS . each do | method | object . define_singleton_method ( method ) { relation . public_send ( method ) } end end end
Returns answers with their corrections.
Returns answers with their corrections .
None
Array<AnswerWithCorrections>
note
corrections are obtained via {CorrectionsForUserQuery}.
corrections are obtained via { CorrectionsForUserQuery } .