Class: ActiveModel::ErrorCollecting::HumanArrayReporter

Inherits:
ArrayReporter show all
Defined in:
lib/active_model/error_collecting/human_array_reporter.rb

Instance Attribute Summary

Attributes inherited from Reporter

#collection

Instance Method Summary collapse

Methods inherited from Reporter

#base, #initialize

Constructor Details

This class inherits a constructor from ActiveModel::ErrorCollecting::Reporter

Instance Method Details

#to_aObject



4
5
6
# File 'lib/active_model/error_collecting/human_array_reporter.rb', line 4

def to_a
  HumanMessageReporter.new(collection).full_messages
end