mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
7ae406a810
For now, the target attribute allows attribute aliases, but `:scope`'s attribute does not, the cause is that the former use `read_attribute_for_validation`, but the latter does not. Unfortunately we cannot use `read_attribute_for_validation` in this case, it intentionally bypass custom attribute getter to allow #7072. To work both alias and #7072, `read_attribute` should be used to resolve attribute aliases. |
||
---|---|---|
.. | ||
absence_validation_test.rb | ||
association_validation_test.rb | ||
i18n_generate_message_validation_test.rb | ||
i18n_validation_test.rb | ||
length_validation_test.rb | ||
numericality_validation_test.rb | ||
presence_validation_test.rb | ||
uniqueness_validation_test.rb |