friendly_id 3.0.3 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog.md +4 -0
- data/lib/friendly_id.rb +7 -2
- data/lib/friendly_id/version.rb +1 -1
- metadata +3 -3
data/Changelog.md
CHANGED
@@ -6,6 +6,10 @@ suggestions, ideas and improvements to FriendlyId.
|
|
6
6
|
* Table of Contents
|
7
7
|
{:toc}
|
8
8
|
|
9
|
+
## 3.0.4 (2010-04-27)
|
10
|
+
|
11
|
+
* Fixed backwards-compatiblity with ActiveSupport 2.3.4 (Thanks Juergen Fesslmeier).
|
12
|
+
|
9
13
|
## 3.0.3 (2010-04-26)
|
10
14
|
|
11
15
|
* Fixed scope update when models use polymorphic relations.
|
data/lib/friendly_id.rb
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
require "forwardable"
|
2
2
|
require "active_support/core_ext/class/attribute_accessors"
|
3
|
-
|
3
|
+
begin
|
4
|
+
require "active_support/core_ext/object/blank"
|
5
|
+
rescue MissingSourceFile
|
6
|
+
# support for ActiveSupport < 2.3.5
|
7
|
+
require "active_support/core_ext/blank"
|
8
|
+
end
|
4
9
|
|
5
10
|
require File.join(File.dirname(__FILE__), "friendly_id", "slug_string")
|
6
11
|
require File.join(File.dirname(__FILE__), "friendly_id", "configuration")
|
@@ -65,4 +70,4 @@ class String
|
|
65
70
|
end
|
66
71
|
end
|
67
72
|
|
68
|
-
require File.join(File.dirname(__FILE__), "friendly_id", "railtie") if defined?(Rails) && Rails.version >= "3"
|
73
|
+
require File.join(File.dirname(__FILE__), "friendly_id", "railtie") if defined?(Rails) && Rails.version >= "3"
|
data/lib/friendly_id/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 3
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 3.0.
|
8
|
+
- 4
|
9
|
+
version: 3.0.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Norman Clarke
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-04-
|
19
|
+
date: 2010-04-27 00:00:00 -03:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|