Skip to content

Conversation

yjukaku
Copy link

@yjukaku yjukaku commented Aug 7, 2025

Makes it possible to define conditions as so:

state :some_state do
  event :do_event, transitions_to: :other_state, if: :possible?
end

def possible?(something_to_check:)
  something_to_check.present?
end

Depends on #246

@yjukaku yjukaku force-pushed the fix-conditional-kwargs branch from 379bdcc to cb0a0d7 Compare August 7, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant