Sha256: 14bb44670810beeb4ee0020769868b65fea8baae150d672d2d64841520c54050
Contents?: true
Size: 346 Bytes
Versions: 17
Compression:
Stored size: 346 Bytes
Contents
class GuardianWithoutFromSpecified include AASM aasm do state :alpha, :initial => true state :beta state :gamma event :use_guards_where_the_first_fails do transitions :to => :beta, :guard => :fail transitions :to => :gamma, :guard => :succeed end end def fail; false; end def succeed; true; end end
Version data entries
17 entries across 17 versions & 1 rubygems