rails-brochure 0.0.2 → 0.0.3

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.
@@ -1,6 +1,7 @@
1
1
  module Rails
2
2
  module Brochure
3
3
  class HomeContent
4
+ #TODO: replace with cattr_accessor:
4
5
  HOME_FOLDER_PATH = "app/views/home/"
5
6
  def self.newest
6
7
  HomeContent.files.map { |f| File.new(f) }.sort { |a,b| a.ctime <=> b.ctime }.map { |f| f.ctime }.last
@@ -5,7 +5,7 @@ module Rails
5
5
  @app = app
6
6
  end
7
7
  def call(env)
8
- reload_routes if new_content?
8
+ reload_routes if new_content? && Rails.env != "Production"
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.2"
3
+ VERSION = "0.0.3"
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.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Dan Hixon
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-01 00:00:00 -07:00
13
+ date: 2011-04-04 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency