cat_router 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,6 +26,8 @@ class CatRoute < ActiveRecord::Base
26
26
  def url
27
27
  if self.slug == ':redirect_to'
28
28
  self.html
29
+ elsif self.slug == ':root'
30
+ "/#{self.locale}"
29
31
  else
30
32
  "/#{self.locale}/#{self.slug}"
31
33
  end
@@ -2,7 +2,7 @@ module CatRouter
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 8
5
+ TINY = 9
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cat_router
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 8
10
- version: 0.1.8
9
+ - 9
10
+ version: 0.1.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kristijan Sedlak