angular_rails_seo 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/angular_rails_seo/version.rb +1 -1
- data/lib/angular_rails_seo/view_helpers.rb +3 -3
- 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: 6cb7a8bbe18dc885012a2c1e3496fab98831c22b
|
4
|
+
data.tar.gz: b9a6eaef14165b77f066f3b61e8a4debeeb7f290
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 266205025b00de4e0c154b3ef4c0a7f5898931aaefa2a5e5216cdea3369025b6d6298b37c0f84dbb761f4b2a12602356e67aca6e3148e3069a78beb40d20c473
|
7
|
+
data.tar.gz: 703f9d1d1ffd2f3966d15a915cce8ec456b3c168fe300a47c46da517bbb2beb03f9b9c12ed34cc9bd941d471df5ac24414acad2511a7f6d329cd9c57561ad867
|
@@ -13,7 +13,7 @@ module AngularRailsSeo
|
|
13
13
|
fallback = data["parent"].blank? ? seo_default : seo_default.merge(Rails.configuration.seo[data["parent"]])
|
14
14
|
|
15
15
|
unless data["model"].blank?
|
16
|
-
response = seo_dynamic(data["model"])
|
16
|
+
response = seo_dynamic(data["model"], regex[1..(regex.size - 1)])
|
17
17
|
data = response.nil? ? {} : response
|
18
18
|
end
|
19
19
|
|
@@ -29,7 +29,7 @@ module AngularRailsSeo
|
|
29
29
|
Rails.configuration.seo["default"]
|
30
30
|
end
|
31
31
|
|
32
|
-
def seo_dynamic(class_name)
|
32
|
+
def seo_dynamic(class_name, matchdata)
|
33
33
|
begin
|
34
34
|
klass = class_name.constantize
|
35
35
|
rescue
|
@@ -38,7 +38,7 @@ module AngularRailsSeo
|
|
38
38
|
end
|
39
39
|
|
40
40
|
begin
|
41
|
-
response = klass.send_method(:seo_match,
|
41
|
+
response = klass.send_method(:seo_match, matchdata)
|
42
42
|
rescue
|
43
43
|
logger.warn "SEO: couldn't call seo_match method of #{class_name}"
|
44
44
|
return nil
|