Releases: annkissam/acts_as_span
Releases · annkissam/acts_as_span
Version 1.2.1
Updates the EndDatePropagator
to add error messages to the propagated object at a lower level.
# Behavior in 1.2.0
obj = EndDatePropagator.call(something)
obj.errors.details
# => [ base: { message: 'Some Error Message' } ]
# Behavior in 1.2.1
obj = EndDatePropagator.call(something)
obj.errors.details
# => [ base: 'Some Error Message' ]
This is compatible with the default error flash message used in the responders
gem. In v 1.2.0, the flash message would render the hash, not just the value associated with :message
.
Version 1.2.0
Adds support for Rails 6.
The only update is porting the error handling of the EndDatePropagator
to use the Rails 6 ActiveModel::Errors
API, which drops support for 4.2.
See #27 for the change.
Version 1.1.1
Fixes an issue introduced in Version 1.1.0 regarding the NoOverlapValidator
Version 1.1.0
- Adds the
EndDatePropagator
object. See class-level documentation for details. - Adds support for configured default span start and end field names for the
NoOverlapValidator
andWithinParentDateSpanValidator
(objects that were using these validators without usingacts_as_span
will break. Either have them act as span or define the methodspan
on them in a way that the object can respond toobject.span.start_date
andobject.span.end_date
) - Adds basic translations for the
EndDatePropagator
and both validators.
Modernize gem
We updated this gem to reflect the actual usage that evolved during the years.