Skip to content

Version 1.2.1

Latest
Compare
Choose a tag to compare
@izzergh izzergh released this 03 Feb 00:00
· 54 commits to master since this release
64dbb8e

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.