rails-brochure 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Rails.application.routes.draw do
2
2
  Rails::Brochure::HomeContent.templates.each do |pg|
3
- match "/#{pg}" => "home##{pg}", :as => pg.gsub('/','_').to_sym
3
+ match "/#{pg}" => "home##{pg}", :as => pg.gsub(/(\/|-)/,'_').to_sym
4
4
  end
5
5
  match '*a', :to => 'home#four_zero_four' unless defined?(NONBROCHURE404)
6
6
  end
@@ -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 if Rails.env=="Development"
8
+ end if Rails.env.development?
9
9
  end
10
10
  end
11
11
  end
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module Brochure
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
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.5
5
+ version: 0.0.6
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-09 00:00:00 -07:00
13
+ date: 2011-04-19 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency