Skip to content

Commit

Permalink
Add #to_s to event
Browse files Browse the repository at this point in the history
  • Loading branch information
the-spectator authored and Anil Kumar Maurya committed Mar 26, 2021
1 parent 6a3aef9 commit 252ade3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/aasm/core/event.rb
Expand Up @@ -110,6 +110,10 @@ def failed_callbacks
transitions.flat_map(&:failures)
end

def to_s
name.to_s
end

private

def attach_event_guards(definitions)
Expand Down

0 comments on commit 252ade3

Please sign in to comment.