= private = protected
to_a()
Returns an array of error messages, with the attribute name included
p.errors.add(:name, "can't be blank") p.errors.add(:name, "must be specified") p.errors.to_a # => ["name can't be blank", "name must be specified"]
# File activemodel/lib/active_model/errors.rb, line 135 def to_a full_messages end