scrivito_seo_page_extender 1.2.5 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -6
- data/app/helper/seo_page_extender_helper.rb +2 -1
- data/lib/scrivito_seo_page_extender/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd346ac5fe379a8ec5cd0d29f486e38e9dc69577
|
4
|
+
data.tar.gz: d5b28b0bdfbecf4c30edfb690e3508a7af02b433
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ca05442caa5d1cc783f96b19c7983e66d3d47d28d471f4412acb270a666bfc1ba954830028b645586a430d99b120f57397402b2f935ba2cf4b945b4c883a893
|
7
|
+
data.tar.gz: aa900274e25b19ea3183430111ec92e5be6dd3cd5f482bc7cc8a3c17b817f139ae3fb9ed6aeaeb50b3eabda8fbeab4e855e6677113ade40224117581bca784c7
|
data/README.md
CHANGED
@@ -157,15 +157,14 @@ ScrivitoSeoPageExtender.configure do |config|
|
|
157
157
|
end
|
158
158
|
```
|
159
159
|
|
160
|
-
You can overwrite the default attribute mapping depending on your app in the obj.rb
|
160
|
+
You can overwrite the default attribute mapping depending on your app in the obj.rb or define it on any obj class for diffenrent data sets:
|
161
161
|
|
162
162
|
```ruby
|
163
|
-
def
|
163
|
+
def seo_attribute_mapping(obj)
|
164
164
|
{
|
165
|
-
og_title: obj.
|
166
|
-
og_description: obj.
|
167
|
-
og_image:
|
168
|
-
...
|
165
|
+
og_title: obj.my_title,
|
166
|
+
og_description: obj.my_description,
|
167
|
+
og_image: obj.my_image
|
169
168
|
}
|
170
169
|
end
|
171
170
|
```
|
@@ -76,7 +76,8 @@ module SeoPageExtenderHelper
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def seo_attribute_mapping(obj)
|
79
|
-
return
|
79
|
+
return obj.seo_attribute_mapping(obj) if obj.respond_to?('seo_attribute_mapping')
|
80
|
+
return Obj.seo_attribute_mapping(obj) if Obj.respond_to?('seo_attribute_mapping') # deprecated
|
80
81
|
{
|
81
82
|
og_title: obj.send(:title).presence,
|
82
83
|
og_description: obj.send(:meta_description).presence,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_seo_page_extender
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scrivito_sdk
|