active_permalink 0.3.0 → 0.3.1

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: b16f6386aa52361de778a4b894b3479fd489e44a4144e116076c73f7b21cce68
4
- data.tar.gz: a43e93473637eded10cb189a4ee2a9829579bc11b32b749ac470adf66558eb5a
3
+ metadata.gz: '032458c16de7436425d15c04eba7fa1d7067218a0b27a75f24d261cba2863ced'
4
+ data.tar.gz: f3c10922bd46ec177cf3c12d4f4672ca491bd1298423101751f7193abe239e6f
5
5
  SHA512:
6
- metadata.gz: 8db0d6f4e65f9fe4dc46e36f2555371040a7851d95a39b860e3f5fef42080dda00bd576048b80fc4a7ec77516e28869987b800c8db99c9d13c720d949a5818b1
7
- data.tar.gz: 89a4f9e787ac3dc150204dceac4cb88836c92bc736502567c974842e98ef9c6199d1ac6d7e90d64b53e2da692e1922ec3ce7444bf3d0ddccab44d9351a038c4c
6
+ metadata.gz: e0dc74e17c9d49726b1dc6d9973a5796f097574784ee124a36b50bb9fb742d06c3ac014e175d6b467d8dc591621df166583d2087674d48576f00db45476e4ac1
7
+ data.tar.gz: d029f9f42e64f6a8944d4726398292968c6f3c5100aaa365df56d3f549ec5fa4eadf8bd9703eb1c10ce74ef946053eb47fc71fcc71310c1c187aaf00b7737107
@@ -3,8 +3,8 @@ module ActivePermalink
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  included do
6
- before_validation do
7
- self.slug = self[:slug]
6
+ before_validation on: :create do
7
+ self.slug = slug
8
8
  end
9
9
 
10
10
  after_update do
@@ -1,3 +1,3 @@
1
1
  module ActivePermalink
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
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.0
4
+ version: 0.3.1
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-10-21 00:00:00.000000000 Z
11
+ date: 2019-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord