Sha256: 79f70cdecda7655f1f67ee3963f1cc17dd3f22cf7e09b52c96afdb7ee70dce5f

Contents?: true

Size: 317 Bytes

Versions: 1

Compression:

Stored size: 317 Bytes

Contents

module RailsSettings
  # For storage all settings in Current, it will reset after per request completed.
  # Base on ActiveSupport::CurrentAttributes
  # https://api.rubyonrails.org/classes/ActiveSupport/CurrentAttributes.html
  class RequestStore < ActiveSupport::CurrentAttributes 
    attribute :settings
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-settings-cached-2.4.0 lib/rails-settings/request_store.rb