Sha256: 6e0f8a14e4df1e89bc20d3011d359e3de39c88f677a647e82968a497a7c8ac98

Contents?: true

Size: 302 Bytes

Versions: 3

Compression:

Stored size: 302 Bytes

Contents

# Engine injects some middleware to reload 
# routes if new files habe been added
module Rails
  module Brochure
    class Engine < Rails::Engine
      initializer "brochure routes" do |app|
        app.middleware.use Rails::Brochure::RouteReloader
      end if Rails.env.development?
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails-brochure-0.4 lib/rails-brochure/engine.rb
rails-brochure-0.3 lib/rails-brochure/engine.rb
rails-brochure-0.2 lib/rails-brochure/engine.rb