All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
- Add complete support for attributes that are available through store accessors
- Hook into railties correctly
- This gem has been in productive use for 12 years now, time for a 1.0 release! 🥳
- Calling
assignable_values_for
with unsupported options will raise an error.
- Add support for Ruby 3.2
- Allow to override humanization for inherited assignable_values
- Remove no longer supported ruby versions (2.3.8, 2.4.2)
- Activate rubygems MFA
- test against ActiveRecord 7.0
- Previously assigned values are no longer duplicated when calling the assignable_values method (fixes #32)
- No longer crashes value blocks return
nil
.
- No longer crashes when assigning
nil
to an attribute with assignable values that are provided as a scope.
- when given a scope, do not load all records to memory during validation
- add tests for Rails 6
- Humanized assignable value methods now also take the include_old_values option (fixes #25)
- fix arity bug
- Add
#humanized_values
for themultiple: true
case.
#humanized_values
is deprecated, in favour of#humanized_assignablevalues
#humanized_value(value)
and#humanized_assignable_values
now also works for themultiple: true
case
- Add support for Array columns using
multiple: true
.
- Get rid of deprecation warnings on Rails 5.1+.
Thanks to irmela.
- Add Rails 5.1 compatibility.
Thanks to GuidoSchweizer.
- No longer support providing humanized values as a hash in favour of always using I18n.
- Fix a bug with a
has_many :through
when return a nil object.
Thanks to foobear.
Please check commits.