blog_logic 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/models/blog_category.rb +6 -1
- data/blog_logic.gemspec +1 -1
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.4.0
|
data/app/models/blog_category.rb
CHANGED
@@ -63,12 +63,17 @@ class BlogCategory
|
|
63
63
|
(self.posts + self.children.map{ |c| c.posts }).uniq.flatten
|
64
64
|
end
|
65
65
|
|
66
|
+
def path
|
67
|
+
"#{Blog.first.path}/topics/#{self.slug}"
|
68
|
+
end
|
69
|
+
|
66
70
|
def subcategory?
|
67
71
|
! self.root?
|
68
72
|
end
|
69
73
|
|
70
74
|
def url
|
71
|
-
"
|
75
|
+
warn "[DEPRECATION] `url` is deprecated. Please use `path` instead."
|
76
|
+
self.path
|
72
77
|
end
|
73
78
|
|
74
79
|
private
|
data/blog_logic.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blog_logic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.
|
8
|
+
- 4
|
9
|
+
- 0
|
10
|
+
version: 1.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bantik
|