seo_sensei 0.0.0.3 → 0.0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/seo_sensei/models/helpers.rb +16 -0
- data/lib/seo_sensei/version.rb +1 -1
- data/lib/seo_sensei.rb +4 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ddb72e070ba5be2269c62ad7a00fb7e9bf41bf5e2d6657c1f55eb4586f1e48a
|
4
|
+
data.tar.gz: 27020c968ebcc2a5ea66fe6ec9773d243665a2ce1f0cb5ce116dfdbc26e5121c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab019a8e363ebe7e8f847161ad8f66ac4ae2c38ef79fd29be5dc7f97f5aa5ab150829e0a9d5b1436aaac45c68ebbbf7e42c074e591c7b2becbc78020a18e2215
|
7
|
+
data.tar.gz: 3d0de475a6bd51d2dd3c79ebb2b31843b1858c8e9062932ee1a12f62a6aa07ac42372e5d891d4c52161c45b97b2b0c791aa3d05a3366363abf7e1714a66dcb3e
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module SeoSensei
|
4
|
+
module Models
|
5
|
+
module Helpers
|
6
|
+
extend ActiveSupport::Concern
|
7
|
+
|
8
|
+
class_methods do
|
9
|
+
def has_seo_tags
|
10
|
+
has_one :seo_tags, class_name: 'SeoSensei::Models::SeoTag', as: :seoable
|
11
|
+
accepts_nested_attributes_for :seo_tags
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/seo_sensei/version.rb
CHANGED
data/lib/seo_sensei.rb
CHANGED
@@ -9,6 +9,10 @@ ActiveSupport.on_load(:action_controller) do
|
|
9
9
|
include ::SeoSensei::Controllers::Helpers
|
10
10
|
end
|
11
11
|
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
13
|
+
include ::SeoSensei::Models::Helpers
|
14
|
+
end
|
15
|
+
|
12
16
|
module SeoSensei
|
13
17
|
class << self
|
14
18
|
attr_accessor :configuration
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seo_sensei
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.0.
|
4
|
+
version: 0.0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paweł Dąbrowski
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- lib/seo_sensei/lookups/default_translation.rb
|
90
90
|
- lib/seo_sensei/lookups/translation.rb
|
91
91
|
- lib/seo_sensei/lookups/translation_attributes.rb
|
92
|
+
- lib/seo_sensei/models/helpers.rb
|
92
93
|
- lib/seo_sensei/models/seo_tag.rb
|
93
94
|
- lib/seo_sensei/version.rb
|
94
95
|
homepage: http://github.com/rubyhero/seo_sensei
|