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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b6ef66e28473ee46f95eb848316c3a7b19dcca1
4
- data.tar.gz: 42be14f0827ea58796788122fea5d98e86facf88
3
+ metadata.gz: 6cb7a8bbe18dc885012a2c1e3496fab98831c22b
4
+ data.tar.gz: b9a6eaef14165b77f066f3b61e8a4debeeb7f290
5
5
  SHA512:
6
- metadata.gz: 2b064d5da97630dd942c915db3e769fdf18a94880a358356f7763c034db9ff3e30b0404fe0979efed76ff67ce4522d5365b8a0926cc76c9df82980709757753b
7
- data.tar.gz: cb8c6e37088dfc990a8e4138fc3e5aea1d98f096d435dd7db00af1276e21c5bbb8621c2d4489ec98224ca8357bc8a10ca36cd31a7b4b17054c5c3df4d5fb7be0
6
+ metadata.gz: 266205025b00de4e0c154b3ef4c0a7f5898931aaefa2a5e5216cdea3369025b6d6298b37c0f84dbb761f4b2a12602356e67aca6e3148e3069a78beb40d20c473
7
+ data.tar.gz: 703f9d1d1ffd2f3966d15a915cce8ec456b3c168fe300a47c46da517bbb2beb03f9b9c12ed34cc9bd941d471df5ac24414acad2511a7f6d329cd9c57561ad867
@@ -1,3 +1,3 @@
1
1
  module AngularRailsSeo
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -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, regex[1..(regex.size - 1)])
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: angular_rails_seo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Ellis