class TestController::Collection

Public Class Methods

new(records) click to toggle source
# File actionpack/test/controller/render_test.rb, line 104
def initialize(records)
  @records = records
end

Public Instance Methods

maximum(attribute) click to toggle source
# File actionpack/test/controller/render_test.rb, line 108
def maximum(attribute)
  @records.max_by(&attribute).public_send(attribute)
end