Sha256: af48c2d3690b2e7c87f2c3652513c4d7db57dc0dc41f380c16e016a39440c077
Contents?: true
Size: 416 Bytes
Versions: 16
Compression:
Stored size: 416 Bytes
Contents
module Volt # All models have a state that has to do with it being loaded, in process of # being loaded, or not yet loading. module ModelState def state if @persistor && @persistor.respond_to?(:state) @persistor.state else @state || :loaded end end def change_state_to(state) @state = state end def loaded? state == :loaded end end end
Version data entries
16 entries across 16 versions & 1 rubygems