Sha256: 54cb85ef6688ea222a8ed829d73bf774665d6ac89463e1d4868ecc39c6a635ec

Contents?: true

Size: 292 Bytes

Versions: 18

Compression:

Stored size: 292 Bytes

Contents

module RailsConfig
  module Rack
    # Rack middleware the reloads RailsConfig on every request (only use in dev mode)
    class Reloader
      def initialize(app)
        @app = app
      end

      def call(env)
        RailsConfig.reload!
        @app.call(env)
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
drtom_rails_config-0.5.0.beta1 lib/rails_config/rack/reloader.rb
rails_config-0.5.0.beta1 lib/rails_config/rack/reloader.rb
rails_config-0.4.2 lib/rails_config/rack/reloader.rb
rails_config-0.4.1 lib/rails_config/rack/reloader.rb
rails_config-0.3.4 lib/rails_config/rack/reloader.rb
rails_config-0.3.3 lib/rails_config/rack/reloader.rb
rails_config-0.3.2 lib/rails_config/rack/reloader.rb
rails_config_i18n-0.3.1.3 lib/rails_config/rack/reloader.rb
rails_config_i18n-0.3.1.2 lib/rails_config/rack/reloader.rb
rails_config_i18n-0.3.1.1 lib/rails_config/rack/reloader.rb
rails_config-0.3.1 lib/rails_config/rack/reloader.rb
rails_config-0.3.0 lib/rails_config/rack/reloader.rb
rails_config-0.2.7 lib/rails_config/rack/reloader.rb
rails_config-0.2.6 lib/rails_config/rack/reloader.rb
rails_config-0.2.5 lib/rails_config/rack/reloader.rb
rails_config-0.2.4 lib/rails_config/rack/reloader.rb
rails_config-0.2.3 lib/rails_config/rack/reloader.rb
rails_config-0.2.2 lib/rails_config/rack/reloader.rb