rails-brochure 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ module Rails
5
5
  class Engine < Rails::Engine
6
6
  initializer "brochure routes" do |app|
7
7
  app.middleware.use "Rails::Brochure::RouteReloader"
8
- end
8
+ end if Rails.env=="Development"
9
9
  end
10
10
  end
11
11
  end
@@ -5,7 +5,7 @@ module Rails
5
5
  @app = app
6
6
  end
7
7
  def call(env)
8
- reload_routes if new_content? && Rails.env != "Production"
8
+ reload_routes if new_content?
9
9
  @app.call(env)
10
10
  end
11
11
  def reload_routes
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module Brochure
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rails-brochure
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Dan Hixon