WorkflowsOnRails / aasm_statecharts

Render AASM state machines to UML statecharts.
MIT License
5 stars 8 forks source link

any way to use with :: in class name #7

Open tansaku opened 5 years ago

tansaku commented 5 years ago

I have some aasm enabled models that are namespaced e.g. Space::Thing - what would be the correct syntax to have these charted with this gem?

tansaku commented 5 years ago

inspecting the code I worked out how to do it from the console:

$ bundle exec rails c
1 > require 'aasm_statechart'
2 > klass = Space::Thing
3 > renderer = AasmStatechart::Renderer.new(klass)
4 > renderer.save('docs/pcl_contract', format: 'png')