Sha256: 1bf5e7776e89312eeb225479eb8159eb55704894d6ff2fae2b0be152667a98c2

Contents?: true

Size: 288 Bytes

Versions: 31

Compression:

Stored size: 288 Bytes

Contents

module Asynchronic
  module DataStore
    class NoLazyStore < TransparentProxy

      include Helper

      def [](key)
        value = __getobj__[key]
        value.respond_to?(:proxy?) ? value.reload.to_value : value
      end

      def lazy?
        false
      end

    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
asynchronic-4.0.3 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-4.0.2 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-4.0.1 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-4.0.0 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-3.0.3 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-3.0.2 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-3.0.1 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-3.0.0 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-2.0.1 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-2.0.0 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-1.6.3 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-1.6.2 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-1.6.1 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-1.6.0 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-1.5.2 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-1.5.1 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-1.5.0 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-1.4.0 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-1.3.1 lib/asynchronic/data_store/no_lazy_store.rb
asynchronic-1.3.0 lib/asynchronic/data_store/no_lazy_store.rb