has_permalink 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. data/lib/has_permalink.rb +1 -1
  2. metadata +5 -7
data/lib/has_permalink.rb CHANGED
@@ -21,7 +21,7 @@ module HasPermalink
21
21
  # find(params[:id]) is quering the permalink field if it's a string
22
22
  #
23
23
  def find(*args)
24
- if args.class == Array && (args.first.class == String || args.first.class == Fixnum) && args.length == 1
24
+ if args.class == Array && (args.first.class == String) && args.length == 1
25
25
  find_by_permalink!(*args)
26
26
  else
27
27
  super(*args)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_permalink
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ola Karlsson
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-25 00:00:00 +02:00
19
- default_executable:
18
+ date: 2011-10-05 00:00:00 Z
20
19
  dependencies: []
21
20
 
22
21
  description:
@@ -36,7 +35,6 @@ files:
36
35
  - lib/railtie.rb
37
36
  - lib/tasks/has_permalink.rake
38
37
  - rails/init.rb
39
- has_rdoc: true
40
38
  homepage: http://haspermalink.org
41
39
  licenses: []
42
40
 
@@ -66,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
64
  requirements: []
67
65
 
68
66
  rubyforge_project:
69
- rubygems_version: 1.4.2
67
+ rubygems_version: 1.8.6
70
68
  signing_key:
71
69
  specification_version: 3
72
70
  summary: SEO Permalink Plugin for Ruby on Rails.