1
0
Fork 0
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:
Thorsten Böttger 2013-02-22 22:09:34 +13:00
parent e32c5dd65d
commit 419f357b3b

View file

@ -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