Sha256: fb433f241ab7b33f708cc42fd47365dd1f7691241e70e0fae90cd0c89b67cdca

Contents?: true

Size: 225 Bytes

Versions: 20

Compression:

Stored size: 225 Bytes

Contents

module Shoppe
  class SettingsLoader
    
    def initialize(app)
      @app = app
    end
    
    def call(env)
      Shoppe.reset_settings
      @app.call(env)
    ensure
      Shoppe.reset_settings
    end
    
  end
end

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
shoppe-1.1.2 lib/shoppe/settings_loader.rb
shoppe-1.1.1 lib/shoppe/settings_loader.rb
shoppe-1.1.0 lib/shoppe/settings_loader.rb
shoppe-1.0.9 lib/shoppe/settings_loader.rb
shoppe-1.0.8 lib/shoppe/settings_loader.rb
kylekthompson-shoppe-1.0.7 lib/shoppe/settings_loader.rb
shoppe-1.0.7 lib/shoppe/settings_loader.rb
shoppe-1.0.6 lib/shoppe/settings_loader.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/shoppe-1.0.5/lib/shoppe/settings_loader.rb
shoppe-1.0.5 lib/shoppe/settings_loader.rb
shoppe-1.0.3 lib/shoppe/settings_loader.rb
shoppe-1.0.2 lib/shoppe/settings_loader.rb
shoppe-1.0.1 lib/shoppe/settings_loader.rb
shoppe-1.0.0 lib/shoppe/settings_loader.rb
shoppe-0.0.21 lib/shoppe/settings_loader.rb
shoppe-0.0.20 lib/shoppe/settings_loader.rb
shoppe-0.0.19 lib/shoppe/settings_loader.rb
shoppe-0.0.18 lib/shoppe/settings_loader.rb
shoppe-0.0.17 lib/shoppe/settings_loader.rb
shoppe-0.0.16 lib/shoppe/settings_loader.rb