seo_meta 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/seo_metum.rb +2 -1
- data/lib/seo_meta/instance_methods.rb +3 -7
- metadata +3 -5
data/app/models/seo_metum.rb
CHANGED
@@ -5,9 +5,10 @@ module SeoMeta
|
|
5
5
|
def included(base)
|
6
6
|
# This has to be introduced using module_eval because it overrides something.
|
7
7
|
base.module_eval do
|
8
|
-
def
|
9
|
-
|
8
|
+
def seo_meta_with_build
|
9
|
+
seo_meta_without_build || build_seo_meta_tags
|
10
10
|
end
|
11
|
+
alias_method_chain :seo_meta, :build
|
11
12
|
|
12
13
|
def attributes
|
13
14
|
super.merge(seo_meta_attributes)
|
@@ -37,11 +38,6 @@ module SeoMeta
|
|
37
38
|
@seo_meta ||= ::SeoMetum.new :seo_meta_type => self.class.name
|
38
39
|
end
|
39
40
|
|
40
|
-
def find_seo_meta_tags
|
41
|
-
@seo_meta ||= ::SeoMetum.where(:seo_meta_type => self.class.name,
|
42
|
-
:seo_meta_id => self.id).first
|
43
|
-
end
|
44
|
-
|
45
41
|
def save_meta_tags
|
46
42
|
seo_meta.seo_meta_id ||= self.id
|
47
43
|
seo_meta.save
|
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
|
+
version: 1.0.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Philip Arndt
|
@@ -10,8 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-04-04 00:00:00
|
14
|
-
default_executable:
|
13
|
+
date: 2011-04-04 00:00:00 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: refinerycms-generators
|
@@ -42,7 +41,6 @@ files:
|
|
42
41
|
- app/models/seo_metum.rb
|
43
42
|
- license.md
|
44
43
|
- readme.md
|
45
|
-
has_rdoc: true
|
46
44
|
homepage: http://philiparndt.name
|
47
45
|
licenses: []
|
48
46
|
|
@@ -66,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
64
|
requirements: []
|
67
65
|
|
68
66
|
rubyforge_project:
|
69
|
-
rubygems_version: 1.
|
67
|
+
rubygems_version: 1.7.2
|
70
68
|
signing_key:
|
71
69
|
specification_version: 3
|
72
70
|
summary: SEO Meta tags plugin
|