Registry / orm / state-machines-activemodel

state-machines-activemodel

JSON →
library0.200.0rbrubygemsunverified

Adds support for creating state machines on ActiveModel attributes.

gem install state_machines-activemodel
INSTALL
IMPORT
SIG · STATE-MACHINES-ACT
S
state-machines-activemodel
ormrubyv0.200.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StateMachines
require 'state_machines-activemodel'

Define a state machine on an ActiveModel class

require 'state_machines-activemodel' class Vehicle include StateMachines::ActiveModel state_machine :state, initial: :parked do event :ignite do transition parked: :idling end end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.200.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
47 hits · last 30 days
node
42
OpenAI (training)
1
Resources
state-machines-activemodel — gem install state-machines-activemodel · libregistry