active_permalink 0.3.1 → 0.3.2

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
  SHA256:
3
- metadata.gz: '032458c16de7436425d15c04eba7fa1d7067218a0b27a75f24d261cba2863ced'
4
- data.tar.gz: f3c10922bd46ec177cf3c12d4f4672ca491bd1298423101751f7193abe239e6f
3
+ metadata.gz: 243ba41f7bbc808001e4aec17f7212499f5c1fdc938b2e20b72db13f25febca0
4
+ data.tar.gz: 32b11a18881be60c779b2ad58c96231d21c8ce5e2377a0dfbc6ec8a06cfb8f09
5
5
  SHA512:
6
- metadata.gz: e0dc74e17c9d49726b1dc6d9973a5796f097574784ee124a36b50bb9fb742d06c3ac014e175d6b467d8dc591621df166583d2087674d48576f00db45476e4ac1
7
- data.tar.gz: d029f9f42e64f6a8944d4726398292968c6f3c5100aaa365df56d3f549ec5fa4eadf8bd9703eb1c10ce74ef946053eb47fc71fcc71310c1c187aaf00b7737107
6
+ metadata.gz: 226c6d785ea23b9bd67d8dea472188985cc992b5406e50163219e9318698eec5cb8612829cddb018e255992058331b3865f39dc55a1a25f2c7dd52c01e1572c1
7
+ data.tar.gz: de0bc4c7f9201cc9bdd33ff2cb26505ad603ea45c5107f894302f78ebe7f898624a381b153d1429deff36ce00ebe7a8fa041238a0cf820d31f2ac1e202c26c3f
@@ -12,6 +12,8 @@ module ActivePermalink
12
12
  end
13
13
 
14
14
  def slug=(value)
15
+ return if value.nil? && !new_record?
16
+
15
17
  generator = Generator.new(self, permalink_options)
16
18
  generator.generate(value)
17
19
 
@@ -1,3 +1,3 @@
1
1
  module ActivePermalink
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_permalink
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonian Guveli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-06 00:00:00.000000000 Z
11
+ date: 2020-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord