Changeset [6d6bcf8471b87c602093ab4061b49352e4efdd2b] by Egor Lynko
July 26th, 2017 @ 03:23 AM
Make errors more inspectable by settings message
When message is set as variable, instead of redefining
message
method, the message will be used in inspect
and
to_s
calls,
both implicit and explicit, which improves logs readability and
simmplifies debugging in the irb
https://github.com/aasm/aasm/commit/6d6bcf8471b87c602093ab4061b4935...
Committed by Egor Lynko
- M lib/aasm/errors.rb
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Library for adding state machines to Ruby classes. Includes persistence layers for things like ActiveRecord. Formerly known as acts_as_state_machine.