static_blocks 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -38,7 +38,7 @@ Run migrations:
38
38
  rake db:migrate
39
39
  ```
40
40
 
41
- Mount engine in routes.rb:
41
+ Ensure that engine is mounted in routes.rb:
42
42
 
43
43
  ```ruby
44
44
  mount StaticBlocks::Engine => "/static_blocks"
@@ -13,6 +13,10 @@ module StaticBlocks
13
13
  def copy_migrations
14
14
  rake('static_blocks:install:migrations')
15
15
  end
16
+
17
+ def add_mount_route
18
+ route 'mount StaticBlocks::Engine => "/static_blocks"'
19
+ end
16
20
  end
17
21
  end
18
22
  end
@@ -1,3 +1,3 @@
1
1
  module StaticBlocks
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -1,8 +1,9 @@
1
1
  Rails.application.routes.draw do
2
2
 
3
- root to: redirect("/#{I18n.default_locale}/info/index")
4
3
  mount StaticBlocks::Engine => "/static_blocks"
5
4
 
5
+ root to: redirect("/#{I18n.default_locale}/info/index")
6
+
6
7
  scope ":locale", locale: /#{I18n.available_locales.join("|")}/ do
7
8
  get "info/index"
8
9
  end
Binary file