cat_router 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,7 +34,7 @@ class CatRoute < ActiveRecord::Base
34
34
  end
35
35
 
36
36
  def cat_routes_or_neighbours
37
- if self.parent_id.present?
37
+ if self.parent_id > 0
38
38
  CatRoute.find(self.parent_id).cat_routes
39
39
  else
40
40
  self.cat_routes
@@ -1,8 +1,8 @@
1
1
  module CatRouter
2
2
  module Version
3
3
  MAJOR = 0
4
- MINOR = 1
5
- TINY = 9
4
+ MINOR = 2
5
+ TINY = 0
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: 9
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 9
10
- version: 0.1.9
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kristijan Sedlak