Sha256: 86642c73267a13ce023ecf01952982e54083de192b4265f240fc2833ddc054ea
Contents?: true
Size: 625 Bytes
Versions: 8
Compression:
Stored size: 625 Bytes
Contents
module AASM module Persistence module PlainPersistence def aasm_read_state # all the following lines behave like @current_state ||= aasm.enter_initial_state current = aasm.instance_variable_get("@current_state") return current if current aasm.instance_variable_set("@current_state", aasm.enter_initial_state) end # may be overwritten by persistence mixins def aasm_write_state(new_state) true end # may be overwritten by persistence mixins def aasm_write_state_without_persistence(new_state) true end end end end
Version data entries
8 entries across 8 versions & 1 rubygems