canonical_url-rails 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/canonical_url/rails/action_view.rb +1 -1
- data/lib/canonical_url/rails/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: 74a2702706ccbd72865372aecb9bc0ca0f18582e
|
4
|
+
data.tar.gz: 3b1f7d75da58bdc894eb1f2fac17704b5cf1a7ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1de6e3a7eb9bbbb13aee847d77b61848759bc3fad1dd76effb80602e6012b522b9e60c7106308d31d844e42e2cabe24166fa959c9344c0ba121c0606a0a7646
|
7
|
+
data.tar.gz: 3985f97bf0cee609337a9c8a570fca20c7f6c6f69e77eb36b2c4668bc44fd12000d0ad4bf90665ee9715441e4a59e400eb5ba41c9ad5f5e825ffcc63d4f59c70
|
@@ -3,7 +3,7 @@ module CanonicalURL
|
|
3
3
|
module ActionView
|
4
4
|
def canonical_link_tag url = nil
|
5
5
|
return '' if url.nil? && @canonical_url.nil?
|
6
|
-
tag("link", rel: "canonical", href: url.html_safe || @canonical_url.html_safe)
|
6
|
+
tag("link", rel: "canonical", href: url.try(:html_safe) || @canonical_url.try(:html_safe))
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|