railhead_permalink 0.1.17 → 0.1.18

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.
@@ -11,14 +11,14 @@ module RailheadPermalink
11
11
  class << self
12
12
  alias_method_chain :find, :permalink
13
13
  end
14
- class_inheritable_reader :permalink_options
14
+ class_attribute :permalink_options
15
15
 
16
- write_inheritable_attribute(:permalink_options, {
16
+ self.permalink_options = {
17
17
  :field => field,
18
18
  :keep_existing => (options[:keep_existing] || false),
19
- :reserved_names => (options[:reserved_names] || []).concat(ActionController::Base.resources_path_names.values),
19
+ :reserved_names => (options[:reserved_names] || []),
20
20
  :unique => (options[:unique] || false)
21
- })
21
+ }
22
22
 
23
23
  before_save :create_permalink
24
24
  validates_presence_of field
@@ -59,4 +59,3 @@ end
59
59
 
60
60
 
61
61
  ActiveRecord::Base.send :include, RailheadPermalink
62
-
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "railhead_permalink"
3
- s.version = "0.1.17"
4
- s.date = "2011-10-12"
3
+ s.version = "0.1.18"
4
+ s.date = "2012-02-27"
5
5
  s.summary = "RailheadPermalink is a Ruby on Rails plugin that automatically finds ActiveRecord objects with permalink."
6
6
  s.email = "nagybence@tipogral.hu"
7
7
  s.homepage = "http://github.com/nagybence/railhead_permalink"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railhead_permalink
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
5
- prerelease:
4
+ hash: 63
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 17
10
- version: 0.1.17
9
+ - 18
10
+ version: 0.1.18
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bence Nagy
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-12 00:00:00 +02:00
18
+ date: 2012-02-27 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  requirements: []
65
65
 
66
66
  rubyforge_project:
67
- rubygems_version: 1.5.2
67
+ rubygems_version: 1.3.7
68
68
  signing_key:
69
69
  specification_version: 3
70
70
  summary: RailheadPermalink is a Ruby on Rails plugin that automatically finds ActiveRecord objects with permalink.