Sha256: b651ccafb5b0e9df3c2450d7211818f0a3bd7ab59056c12ef806d8bc88004bf4
Contents?: true
Size: 559 Bytes
Versions: 64
Compression:
Stored size: 559 Bytes
Contents
class User include DataMapper::Resource property :id, Serial property :name, String validates_present :name, :state, :access_state state_machine :initial => :unregistered do event :register do transition :unregistered => :registered end event :unregister do transition :registered => :unregistered end end state_machine :access_state, :initial => :enabled do event :enable do transition all => :enabled end event :disable do transition all => :disabled end end end
Version data entries
64 entries across 64 versions & 15 rubygems