Sha256: 221106cde40d3369cb0995437a58f8e3b59ad114b475b69511ee8907d427b51a
Contents?: true
Size: 406 Bytes
Versions: 46
Compression:
Stored size: 406 Bytes
Contents
require 'active_record' class InvalidPersistor < ActiveRecord::Base include AASM aasm :column => :status, :skip_validation_on_save => true do state :sleeping, :initial => true state :running event :run do transitions :to => :running, :from => :sleeping end event :sleep do transitions :to => :sleeping, :from => :running end end validates_presence_of :name end
Version data entries
46 entries across 46 versions & 1 rubygems