railhead_permalink 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d405133a464a9ddffa07a2bee89b65935b0c520
4
- data.tar.gz: 203e8c960c51188b1c021a54746851e5b14828e3
3
+ metadata.gz: 549d9aa8e21d99cb4d72701d2aacadd3bda8e8df
4
+ data.tar.gz: 1977ce57de8503fce94ded930055f8b782bc92ab
5
5
  SHA512:
6
- metadata.gz: 980d5972ce3b6e68d1e9b7ba561f5a07618b1d48d5463395cc3aa01b63e68106645a2dc325f1adec2f5fc9ffa56b1173b090f5d9ba8baa1b410a40a5b57d1e6c
7
- data.tar.gz: 2b71750a92e3f3697b09d53aec96665fcc6ea9d78fdeff36c311abde23431f9fbce922ce5708bb9b5d44d7ec222feeb609cad4876278483aa01bb5dc6baa4288
6
+ metadata.gz: 204dd294b43b9b914f292cf30739d612f01bdba5c638d97d0bf048b9bd94ded93dc4430565e3f2898ec257fbb63187f673ac85e4d67ae2466b6f98c908e1583b
7
+ data.tar.gz: fd1c052349c2bfa2ca62689765f67de9f22c016ebd4728c95c7a9c035177b0ffc0155203fdc3637db2a65a6aa89da56c15c1aaa31ed0d8d988d636c0612be258
@@ -52,7 +52,7 @@ module RailheadPermalink
52
52
 
53
53
  def create_permalink
54
54
  if self.permalink.nil? or (self.changed.include?(permalink_options[:field].to_s) and not permalink_options[:keep_existing])
55
- key = self[permalink_options[:field]].to_url
55
+ key = self.send(permalink_options[:field]).to_url
56
56
  unless self.permalink == key
57
57
  permalink, counter = key, '-1'
58
58
  while permalink_options[:reserved_names].include?(permalink) or permalink.blank? or
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "railhead_permalink"
3
- s.version = "0.2.5"
4
- s.date = "2015-02-23"
3
+ s.version = "0.2.6"
4
+ s.date = "2016-09-15"
5
5
  s.summary = "RailheadPermalink is a Ruby on Rails plugin that automatically finds ActiveRecord objects with permalink."
6
6
  s.email = "bence.nagy@gmail.com"
7
7
  s.homepage = "http://github.com/nagybence/railhead_permalink"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railhead_permalink
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bence Nagy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-23 00:00:00.000000000 Z
11
+ date: 2016-09-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: bence.nagy@gmail.com
@@ -42,7 +42,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
42
42
  version: '0'
43
43
  requirements: []
44
44
  rubyforge_project:
45
- rubygems_version: 2.4.6
45
+ rubygems_version: 2.5.1
46
46
  signing_key:
47
47
  specification_version: 4
48
48
  summary: RailheadPermalink is a Ruby on Rails plugin that automatically finds ActiveRecord