mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
it's more a question up to now
This commit is contained in:
parent
e32c5dd65d
commit
419f357b3b
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ module AASM
|
|||
|
||||
# filters the results of events_for_current_state so that only those that
|
||||
# are really currently possible (given transition guards) are shown.
|
||||
# TODO: what about events.permissible ?
|
||||
# QUESTION: what about events.permissible ?
|
||||
def permissible_events
|
||||
events.select{ |e| @instance.send(("may_" + e.to_s + "?").to_sym) }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue