- Needs Reform >= 2.3.0.
- make the inclusion of ActiveModel form builder modules optional when using dry-validation. This can be controlled via
config.reform.enable_active_model_builder_methods = true
. - delegate
validates_each
method and allow it to be called outside a validation block. - add
case_sensitive
option to Reform Uniqueness validation. Defaults to true. - fix bug in uniqueness validation where form has different attribute name to column
- improve handling of persisted records in uniqueness validator
- remove params.merge! as it's deprecated in rails 5
- update to support reform 2.3, the new API means that
errors.add
is delegated to ActiveModel::Errors so we have support for rails 5 :descriptions without having to do anything !Yey! - Fix nested form validation (#53)
- Fix a bug where requiring
form/active_model/validations
in a non-Rails environment wouldn't load all necessary files.
- Allow using Reform-Rails without Rails (it used to crash when not loading
rails.rb
).
- Allow setting
config.reform
in initializers, too.
- Introduce a railtie to load either
ActiveModel::Validations
orDry::Validations
. This can be controlled viaconfig.reform.validations = :dry
.
- Allow Reform-2.2.0.rc1 in gemspec.
- First working release.