Sha256: 70274f1e3672f7b9b40f20d3b55b223ba96f8710d7a11988900a9e501e750a02

Contents?: true

Size: 211 Bytes

Versions: 9

Compression:

Stored size: 211 Bytes

Contents

module Tienda
  class SettingsLoader
    def initialize(app)
      @app = app
    end

    def call(env)
      Tienda.reset_settings
      @app.call(env)
    ensure
      Tienda.reset_settings
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tienda-2.1.3 lib/tienda/settings_loader.rb
tienda-2.1.2 lib/tienda/settings_loader.rb
tienda-2.1.1 lib/tienda/settings_loader.rb
tienda-2.1.0 lib/tienda/settings_loader.rb
tienda-2.0.2 lib/tienda/settings_loader.rb
tienda-2.0.1 lib/tienda/settings_loader.rb
tienda-1.1.2 lib/tienda/settings_loader.rb
tienda-1.1.1 lib/tienda/settings_loader.rb
tienda-1.1.0 lib/tienda/settings_loader.rb