mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
cb74473db6
To be able to return type of validator, one can now call `details` on Errors instance: ```ruby class User < ActiveRecord::Base validates :name, presence: true end ``` ```ruby user = User.new; user.valid?; user.errors.details => {name: [{error: :blank}]} ``` |
||
---|---|---|
.. | ||
cases | ||
models | ||
validators | ||
config.rb |