seo_meta 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,7 +34,9 @@ def is_seo_meta(options = {})
34
34
  self.send :include, ::SeoMeta::InstanceMethods
35
35
  extend ::SeoMeta::ClassMethods
36
36
 
37
- # Ensure seo_meta is saved when the model is saved.
37
+ # Ensure seo_meta is build before the model is saved.
38
+ # And ensure that seo_meta is saved after the model is saved.
39
+ before_save :build_seo_meta_tags
38
40
  after_save :save_meta_tags!
39
41
 
40
42
  # Delegate both the accessor and setters for the fields to :seo_meta
@@ -9,17 +9,13 @@ module SeoMeta
9
9
  find_seo_meta_tags || build_seo_meta_tags
10
10
  end
11
11
 
12
+ # Allow attributes supplied to override the current seo_meta_attributes.
12
13
  def attributes
13
- super.merge(seo_meta_attributes)
14
+ seo_meta_attributes.merge(super)
14
15
  end
15
16
 
16
17
  def attributes=(attributes, *args)
17
- attributes.update(seo_meta_attributes)
18
- super
19
- end
20
-
21
- def update_attributes(attributes, *args)
22
- attributes.update(seo_meta_attributes)
18
+ seo_meta_attributes.merge(attributes)
23
19
  super
24
20
  end
25
21
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: seo_meta
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.5
5
+ version: 1.0.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Philip Arndt
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-28 00:00:00 Z
13
+ date: 2011-05-06 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: refinerycms-generators
@@ -64,10 +64,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  requirements: []
65
65
 
66
66
  rubyforge_project:
67
- rubygems_version: 1.7.2
67
+ rubygems_version: 1.8.0
68
68
  signing_key:
69
69
  specification_version: 3
70
70
  summary: SEO Meta tags plugin
71
71
  test_files: []
72
72
 
73
- has_rdoc: