infopark_rails_connector 6.8.0.beta.200.720.44fbabd → 6.8.0.beta.200.744.99f67fc
Sign up to get free protection for your applications and to get access to all the features.
@@ -19,7 +19,7 @@ module RailsConnector
|
|
19
19
|
cms_path_or_url(target, "url", options)
|
20
20
|
end
|
21
21
|
|
22
|
-
|
22
|
+
LINK_TO_UNREACHABLE = "#__target_object_not_reachable" #:nodoc:
|
23
23
|
LINK_TO_EMPTY_LINKLIST = "#__empty_linklist" #:nodoc:
|
24
24
|
|
25
25
|
def cms_path_or_url(target, path_or_url, options = {}) #:nodoc:
|
@@ -40,7 +40,7 @@ module RailsConnector
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def cms_path_or_url_for_links(link, path_or_url) #:nodoc:
|
43
|
-
return
|
43
|
+
return LINK_TO_UNREACHABLE if link.internal? && link.destination_object.nil?
|
44
44
|
append_search_and_fragment(
|
45
45
|
basic_url_or_path_for_link(link, path_or_url), link
|
46
46
|
)
|
@@ -75,7 +75,7 @@ module RailsConnector
|
|
75
75
|
content_attribute.gsub(%r(#{LINK_PATTERN}(['"]?))) do
|
76
76
|
link = link_map[$1.to_s]
|
77
77
|
if link.blank?
|
78
|
-
"#{CmsRoutingHelper::
|
78
|
+
"#{CmsRoutingHelper::LINK_TO_UNREACHABLE}#{$2}"
|
79
79
|
else
|
80
80
|
uri = "#{cms_path(link)}#{$2}"
|
81
81
|
if link.markdown?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark_rails_connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: -108672089269
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 6
|
@@ -9,10 +9,12 @@ version: !ruby/object:Gem::Version
|
|
9
9
|
- 0
|
10
10
|
- beta
|
11
11
|
- 200
|
12
|
-
-
|
13
|
-
-
|
14
|
-
-
|
15
|
-
|
12
|
+
- 744
|
13
|
+
- 99
|
14
|
+
- f
|
15
|
+
- 67
|
16
|
+
- fc
|
17
|
+
version: 6.8.0.beta.200.744.99f67fc
|
16
18
|
platform: ruby
|
17
19
|
authors:
|
18
20
|
- Infopark AG
|
@@ -20,7 +22,7 @@ autorequire:
|
|
20
22
|
bindir: bin
|
21
23
|
cert_chain: []
|
22
24
|
|
23
|
-
date: 2012-07-
|
25
|
+
date: 2012-07-05 00:00:00 +02:00
|
24
26
|
default_executable:
|
25
27
|
dependencies:
|
26
28
|
- !ruby/object:Gem::Dependency
|