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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d55922b10fe95333902c716fef0f4af60f19945
4
- data.tar.gz: 79e5c02defba19a6c4566986c4576b7c9877000d
3
+ metadata.gz: 064bcf41fe12a6424d8f8f7f310b1ebbb4fcbec9
4
+ data.tar.gz: 660091601c2138fa5258dafa44966531899ced53
5
5
  SHA512:
6
- metadata.gz: 4f9cbf209d29222a1025c11301a3487f69b4e2f14d113034262992874f1ec4d3b508a1cf061f19ceca9d53223b01e47393798cdd4bd6ac896f1da193b8a5daf1
7
- data.tar.gz: a61f8d9a100fb3d76731b7c6fb7466585fae6afd37b392238181f8ec0883ca2bebfc3212237930554cd311da4ab756582d5ddc809b15b8f944a9aae15d7678ec
6
+ metadata.gz: 31058dc0dc15a5d200d8ac4f351e187a02f867d28f56469faede2d14b0e8f07271c7233880c294ddae9d170a6764ad18c3b5570df3cce44e0e329329f10ddcd7
7
+ data.tar.gz: 7bcc5cb92bc77d6cbfe719fe63bc3d7692fff91a046d0d6e2eeb5491b1a36fad9cfce0758f4c0ae09aa518e7ed27aac746551da5a9ea958aad505cd03063f8e2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.9.5)
4
+ rocket_cms (0.9.7)
5
5
  addressable
6
6
  coffee-rails
7
7
  devise
@@ -50,7 +50,7 @@ module RocketCMS
50
50
  end
51
51
 
52
52
  def custom_app_url(object)
53
- Rails.application.routes.url_helpers.url_for(object, only_path: true)
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
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.9.5"
2
+ VERSION = "0.9.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv