Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for 1.8.7

  • Loading branch information...
commit 0613f2983c3f21fbed1f240b915dde564648420f 1 parent d2ab49f
@norman norman authored
View
4 Changelog.md
@@ -6,6 +6,10 @@ suggestions, ideas and improvements to FriendlyId.
* Table of Contents
{:toc}
+## 3.1.5 (2010-09-01)
+
+* Fix invalid empty symbol with 1.8.x.
+
## 3.1.4 (2010-09-01)
* Significantly improve performance of queries using slugs with no cache on AR3.
View
2  lib/friendly_id/configuration.rb
@@ -87,7 +87,7 @@ def initialize(configured_class, method, options = nil, &block)
def cache_column=(value)
@cache_column = value.to_s.strip.to_sym
- if [:slug, :slugs, :""].include?(@cache_column)
+ if value =~ /\s/ || [:slug, :slugs].include?(@cache_column)
raise ArgumentError, "FriendlyId cache column can not be named '#{value}'"
end
@cache_column
View
2  lib/friendly_id/version.rb
@@ -2,7 +2,7 @@ module FriendlyId
module Version
MAJOR = 3
MINOR = 1
- TINY = 4
+ TINY = 5
BUILD = nil
STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
end
Please sign in to comment.
Something went wrong with that request. Please try again.