rails--rails/activemodel/test
Eugene Kenny d2e2ca0d0f Always load validator class to verify it exists
When updating our app for 9def05385f, I
found several incorrectly configured validations that looked like this:

    validates :name, uniqueness: true, case_sensitive: false

The intent is clearly for `case_sensitive: false` to be passed as an
option to the uniqueness validator, but instead it's being passed as
its own separate validation. Because the value `false` disables the
validation, the validator class isn't loaded and the failure is silent.

The validator should always be loaded, even if it's disabled, to ensure
it exists and avoid configuration errors like the one described above.
2019-08-26 11:52:34 +01:00
..
cases Always load validator class to verify it exists 2019-08-26 11:52:34 +01:00
models Merge pull request #32313 from lulalala/model_error_as_object 2019-04-24 16:16:00 -04:00
validators Raise deprecation for calling `[:f] = 'b'` or `[:f] << 'b'` 2019-03-31 22:59:12 +08:00