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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 948676c10897c9720f1511204bf0f4aeaa58f634
4
- data.tar.gz: 8c2de61e02971df65f92ddda29fcfadd73dd721e
3
+ metadata.gz: 2500f6be49a1ad4f442d9450712b797abac90ae2
4
+ data.tar.gz: ca9c54b62346383f2084a523f3d5d3c3f2bd91f7
5
5
  SHA512:
6
- metadata.gz: 3819d6b2eeb321cb83bc57b54b2e6df020586b1d7032b1b4ce37516d0912d88f85c3c6e66ef061f27d95860a1f2f0680118026832a1eec8ef0a4b613be0a2cc0
7
- data.tar.gz: 9d6264d55246e3c2f56a86af75757b5fa633f53b47717267d040f59f47354559a8d83ca13755f1b3ad84af075be15ee0d130df5a7284a1533c890976f2754286
6
+ metadata.gz: 7214a34785a68c8bea28f09e951b43a3d4532758faa1c116c7985a1fde9875be20d91a7ac5f60b8acc78855ce3ffff56ef2efc7d4881573094fa90ad92b7c202
7
+ data.tar.gz: 150f16a1d43239fe7dfabcfe665a858868e655753925c08449ae8ab1150583be9940d1b6917cfd0edc27a35a78f6746ea75d3b9b9deeee63b839fbe0552e882e
@@ -20,8 +20,7 @@ module Permalinker
20
20
 
21
21
  self.send(:attr_accessor, :overwrite_permalink)
22
22
 
23
- before_validation :create_permalink
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
- write_attribute(to_permalink_name, "#{self.id}-#{value}".to_permalink)
69
+ self.update_column(to_permalink_name, "#{self.id}-#{value}".to_permalink)
71
70
  end
72
71
  end
73
72
  end
@@ -3,7 +3,7 @@ require "./lib/permalinker/version"
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "permalinker"
6
- s.version = "1.0.2"
6
+ s.version = "1.0.3"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Florian Eck"]
9
9
  s.email = ["it-support@friends-systems.de"]
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.2
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-04 00:00:00.000000000 Z
11
+ date: 2014-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: friendly_extensions