Skip to content

Releases: annkissam/acts_as_span

Version 1.2.1

03 Feb 00:00
64dbb8e
Compare
Choose a tag to compare

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

02 Feb 21:13
b5310c2
Compare
Choose a tag to compare

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

01 Apr 12:59
Compare
Choose a tag to compare

Fixes an issue introduced in Version 1.1.0 regarding the NoOverlapValidator

Version 1.1.0

31 Mar 22:06
Compare
Choose a tag to compare
  • Adds the EndDatePropagator object. See class-level documentation for details.
  • Adds support for configured default span start and end field names for the NoOverlapValidator and WithinParentDateSpanValidator (objects that were using these validators without using acts_as_span will break. Either have them act as span or define the method span on them in a way that the object can respond to object.span.start_date and object.span.end_date)
  • Adds basic translations for the EndDatePropagator and both validators.

Modernize gem

18 Jul 10:34
Compare
Choose a tag to compare

We updated this gem to reflect the actual usage that evolved during the years.