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 committed Oct 26, 2020
1 parent 626bb16 commit 3748cc0
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 3748cc0

Please sign in to comment.