rocket_cms 0.9.5 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rocket_cms.rb +1 -3
- data/lib/rocket_cms/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 064bcf41fe12a6424d8f8f7f310b1ebbb4fcbec9
|
4
|
+
data.tar.gz: 660091601c2138fa5258dafa44966531899ced53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31058dc0dc15a5d200d8ac4f351e187a02f867d28f56469faede2d14b0e8f07271c7233880c294ddae9d170a6764ad18c3b5570df3cce44e0e329329f10ddcd7
|
7
|
+
data.tar.gz: 7bcc5cb92bc77d6cbfe719fe63bc3d7692fff91a046d0d6e2eeb5491b1a36fad9cfce0758f4c0ae09aa518e7ed27aac746551da5a9ea958aad505cd03063f8e2
|
data/Gemfile.lock
CHANGED
data/lib/rocket_cms.rb
CHANGED
@@ -50,7 +50,7 @@ module RocketCMS
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def custom_app_url(object)
|
53
|
-
Rails.application.routes.url_helpers.
|
53
|
+
Rails.application.routes.url_helpers.polymorphic_url(object, routing_type: :path)
|
54
54
|
end
|
55
55
|
|
56
56
|
def app_url(object)
|
@@ -60,8 +60,6 @@ module RocketCMS
|
|
60
60
|
else
|
61
61
|
object.fullpath
|
62
62
|
end
|
63
|
-
elsif object.class.name == 'News'
|
64
|
-
Rails.application.routes.url_helpers.news_path(object)
|
65
63
|
else
|
66
64
|
RocketCMS.custom_app_url(object)
|
67
65
|
end
|
data/lib/rocket_cms/version.rb
CHANGED