Sha256: 81f32bc34abf49d6538e6843b16e88d52056143a5f062d56c7cbb07998b1786c

Contents?: true

Size: 422 Bytes

Versions: 55

Compression:

Stored size: 422 Bytes

Contents

module Volt
  module Persistors
    # StoreState provides method for a store to track its loading state.
    module StoreState
      # Called when a collection loads
      def loaded(initial_state = nil)
        if initial_state
          @model.change_state_to(:loaded_state, initial_state)
        elsif !@loaded_state
          @model.change_state_to(:loaded_state, :not_loaded)
        end
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
volt-0.9.7.pre8 lib/volt/models/persistors/store_state.rb
volt-0.9.7.pre7 lib/volt/models/persistors/store_state.rb
volt-0.9.7.pre6 lib/volt/models/persistors/store_state.rb
volt-0.9.7.pre5 lib/volt/models/persistors/store_state.rb
volt-0.9.7.pre3 lib/volt/models/persistors/store_state.rb
volt-0.9.7.pre2 lib/volt/models/persistors/store_state.rb
volt-0.9.6 lib/volt/models/persistors/store_state.rb
volt-0.9.6.pre3 lib/volt/models/persistors/store_state.rb
volt-0.9.6.pre2 lib/volt/models/persistors/store_state.rb
volt-0.9.6.pre1 lib/volt/models/persistors/store_state.rb
volt-0.9.5 lib/volt/models/persistors/store_state.rb
volt-0.9.5.pre12 lib/volt/models/persistors/store_state.rb
volt-0.9.5.pre11 lib/volt/models/persistors/store_state.rb
volt-0.9.5.pre9 lib/volt/models/persistors/store_state.rb
volt-0.9.5.pre8 lib/volt/models/persistors/store_state.rb
volt-0.9.5.pre7 lib/volt/models/persistors/store_state.rb
volt-0.9.5.pre6 lib/volt/models/persistors/store_state.rb
volt-0.9.5.pre5 lib/volt/models/persistors/store_state.rb
volt-0.9.5.pre4 lib/volt/models/persistors/store_state.rb
volt-0.9.5.pre3 lib/volt/models/persistors/store_state.rb