permalinker 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/permalinker/orm/base.rb +2 -3
- data/permalinker.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2500f6be49a1ad4f442d9450712b797abac90ae2
|
4
|
+
data.tar.gz: ca9c54b62346383f2084a523f3d5d3c3f2bd91f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7214a34785a68c8bea28f09e951b43a3d4532758faa1c116c7985a1fde9875be20d91a7ac5f60b8acc78855ce3ffff56ef2efc7d4881573094fa90ad92b7c202
|
7
|
+
data.tar.gz: 150f16a1d43239fe7dfabcfe665a858868e655753925c08449ae8ab1150583be9940d1b6917cfd0edc27a35a78f6746ea75d3b9b9deeee63b839fbe0552e882e
|
data/lib/permalinker/orm/base.rb
CHANGED
@@ -20,8 +20,7 @@ module Permalinker
|
|
20
20
|
|
21
21
|
self.send(:attr_accessor, :overwrite_permalink)
|
22
22
|
|
23
|
-
|
24
|
-
before_save :create_permalink
|
23
|
+
after_save :create_permalink
|
25
24
|
end
|
26
25
|
end
|
27
26
|
|
@@ -67,7 +66,7 @@ module Permalinker
|
|
67
66
|
# Getting Permalinker data
|
68
67
|
# Check overwrite
|
69
68
|
value = self.overwrite_permalink.blank? ? self.to_param : self.overwrite_permalink
|
70
|
-
|
69
|
+
self.update_column(to_permalink_name, "#{self.id}-#{value}".to_permalink)
|
71
70
|
end
|
72
71
|
end
|
73
72
|
end
|
data/permalinker.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: permalinker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Eck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: friendly_extensions
|