Sha256: 0ca4bdc745b55a9f30ca0809ca47be668bd82b4f6c2e2bcb54676ad5f39bcc87

Contents?: true

Size: 271 Bytes

Versions: 15

Compression:

Stored size: 271 Bytes

Contents

module Acfs::Model

  module Loadable
    extend ActiveSupport::Concern

    # Check if model is loaded or if request is still queued.
    #
    def loaded?
      !!@loaded
    end

    # Mark model as loaded.
    #
    def loaded!
      @loaded = true
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
acfs-0.16.0 lib/acfs/model/loadable.rb
acfs-0.15.0 lib/acfs/model/loadable.rb
acfs-0.14.0 lib/acfs/model/loadable.rb
acfs-0.13.0 lib/acfs/model/loadable.rb
acfs-0.12.0 lib/acfs/model/loadable.rb
acfs-0.11.0 lib/acfs/model/loadable.rb
acfs-0.10.0 lib/acfs/model/loadable.rb
acfs-0.9.0 lib/acfs/model/loadable.rb
acfs-0.8.0 lib/acfs/model/loadable.rb
acfs-0.7.0 lib/acfs/model/loadable.rb
acfs-0.6.0 lib/acfs/model/loadable.rb
acfs-0.5.1 lib/acfs/model/loadable.rb
acfs-0.5.0 lib/acfs/model/loadable.rb
acfs-0.4.0 lib/acfs/model/loadable.rb
acfs-0.3.0 lib/acfs/model/loadable.rb