acts_as_seo_friendly 0.0.4 → 0.0.5

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: 41f9488c5540dee80d15efc298b081e1f3f77c3b
4
- data.tar.gz: ede537eb688a81fbec8e4917f77cc64c5066bed8
3
+ metadata.gz: e8991184a6efb66cb8fef89079e53d7c348e2d11
4
+ data.tar.gz: 816bd4c40b28078e53651d8a3a0c82b9e8ed13fb
5
5
  SHA512:
6
- metadata.gz: 432fe64c3d7339a1efadb1c6c54cb72efc5daac0c32443776fc06dabaa21a4364c2c987579ba25868c80fb014c8998d59af75d97a735aeaddddffe3e5f3bf7d6
7
- data.tar.gz: ceb187df9b4cdaf3a96625a9937dce294eae74e28d4c760896d6f4de00df3b51cb91fb19f3cb345429b9159e64ccdbabd2d2c9ab5bd449180e22e70d618869b9
6
+ metadata.gz: 0efb0c0ddc56ef279ef566b71f4fe17fe410ec5ecdd7dd3288a5524e92a0916eb7015da313dc8978455252111a1c9b4ad8f4239c64c6d55e87ff4900c0409d0f
7
+ data.tar.gz: e8f046276f9cf9f686b823afd8c60b4a9d31816080c7aaffd84b006430658ce0f2f9843922deff9926a9d3179f3f1d7e271fd90f47b371a56e2cc1d0397f0669
@@ -0,0 +1,9 @@
1
+ module ActsAsSeoFriendly
2
+ module RenderHelper
3
+ def set_seo_meta_tags(seo_friendly_object)
4
+ title seo_friendly_object.meta_title
5
+ description seo_friendly_object.meta_description
6
+ keywords seo_friendly_object.meta_keywords
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ module ActsAsSeoFriendly
2
+ class SeoDatum < ::ActiveRecord::Base
3
+ PERMITTED_ATTRIBUTES = %i(id meta_title meta_keywords meta_description _destroy)
4
+
5
+ belongs_to :datable, polymorphic: true
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module ActsAsSeoFriendly
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_seo_friendly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timur Khafizov
@@ -62,6 +62,8 @@ files:
62
62
  - MIT-LICENSE
63
63
  - README.md
64
64
  - Rakefile
65
+ - app/helpers/acts_as_seo_friendly/render_helper.rb
66
+ - app/models/acts_as_seo_friendly/seo_datum.rb
65
67
  - db/migrate/1_create_seo_data.rb
66
68
  - lib/acts_as_seo_friendly.rb
67
69
  - lib/acts_as_seo_friendly/datable.rb