1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/test
José Valim d6cbb27e7b Revert "Make ActiveModel::Errors#add_on_blank and #add_on_empty accept an options hash and make various Validators pass their (filtered) options."
Having a huge array to whitelist options is not the proper way to handle this case. This means that the ActiveModel::Errors object should know about the options given in *all* validators and break the extensibility added by the validators itself. If the intent is to whitelist options before sending them to I18n, each validator should clean its respective options instead of throwing the responsibility to the Errors object.

This reverts commit bc1c8d58ec.
2010-05-15 21:55:16 +02:00
..
cases Revert "Make ActiveModel::Errors#add_on_blank and #add_on_empty accept an options hash and make various Validators pass their (filtered) options." 2010-05-15 21:55:16 +02:00
models validation macros can now be used within an instance 2010-05-13 13:57:37 -07:00
validators Add validates method as shortcut to setup validators for a given set of attributes: 2010-01-07 19:23:59 +01:00
config.rb Make Active Model test suite similar to Active Record 2009-03-20 10:32:24 +00:00