Releases: AaronLasseigne/active_interaction
Releases · AaronLasseigne/active_interaction
v0.6.0: Version 0.6.0 - Yanked
Added
- Add ability to introspect interactions with
filters
.
- #57: Allow getting all of the user-supplied inputs in an interaction with
inputs
.
- #61: Add a symbol filter.
- #58: Allow adding symbolic errors with
errors.add_sym
and retrieving them with
errors.symbolic
.
Changed
- Error class now end with
Error
.
- By default, strip unlisted keys from hashes. To retain the old behavior,
set strip: false
on a hash filter.
- #49: Prevent specifying defaults (other than
nil
or {}
) on hash filters. Set
defaults on the nested filters instead.
- #66: Replace
allow_nil: true
with default: nil
.
Fixed
- Fix bug that prevented listing multiple attributes in a hash filter.
- Fix bug that prevented hash filters from being nested in array filters.
v0.5.0
Added
- #34: Allow adding errors in
execute
method with errors.add
.
Fixed
- #56: Prevent manually setting the outcome's result.
v0.4.0
Added
- Support i18n translations.
v0.3.0
Added
- #30: Allow nested default values.
Changed
- #36: Give better error messages for nested attributes.
- #39: Add a more useful invalid interaction error message.
- #38: Use default value when given an explicit
nil
.
v0.2.2
Fixed
- #40: Fix support for
ActiveSupport::TimeWithZone
.
v0.2.1
Fixed
- #37: Fix setting a default value on more than one attribute at a time.
v0.2.0
Added
- #23: Add support for strptime format strings on Date, DateTime, and Time filters.
Changed
- #20: Wrap interactions in ActiveRecord transactions if they're available.
- #24: Add option to strip string values, which is enabled by default.
v0.1.3
Fixed
- Fix bug that prevented
attr_accessor
s from working.
- Handle unconfigured timezones.
- #27: Use RDoc as YARD's Markdown provider instead of kramdown.
v0.1.2
Fixed
- #29:
execute
will now have the filtered version of the values passed
to run
or run!
as was intended.
v0.1.1
Fixed
- #28: Correct gemspec dependencies on activemodel.