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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5144b703f99725d41683d86578c8253d5208e0db13631ff04b4d16cb3abe54ba
4
- data.tar.gz: 2ba20aa017369bc24f0f46f6995f66382b2959ced3392b5385e4658ad62a1758
3
+ metadata.gz: 2ddb72e070ba5be2269c62ad7a00fb7e9bf41bf5e2d6657c1f55eb4586f1e48a
4
+ data.tar.gz: 27020c968ebcc2a5ea66fe6ec9773d243665a2ce1f0cb5ce116dfdbc26e5121c
5
5
  SHA512:
6
- metadata.gz: d1743561415750c31de5da21528ed64da6f12edd14b2fcd72adde973db026f7913f5ab13d703ff25fab426396250014006d0653248e9daca72acd3e7bdc0a8e0
7
- data.tar.gz: 4752e30fd56c9683cdc4b62a8683851b6c35655a6a4cb46cbb1bcc0747c6a5cef59e3d65f04098161b4d21e70ffb2a28236747a59d4148284d41008265e71502
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
@@ -6,7 +6,7 @@ module SeoSensei
6
6
  #
7
7
  # @return [String]
8
8
  def to_s
9
- "0.0.0.3"
9
+ "0.0.0.4"
10
10
  end
11
11
  end
12
12
  end
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.3
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