public
Description: monkey patched friendly_id that allows for a larger number of duplicate slugs
Homepage:
Clone URL: git://github.com/tkadom/friendly_id.git
friendly_id / CHANGES
100644 77 lines (50 sloc) 2.762 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
July 25 2008
 
* Moved strip_diacritics into Slug for easier reuse/better organization.
  Put class methods inside class << self block. (Norman Clarke)
 
July 25 2008
 
* Small change to allow friendly_id to work better with STI. (David Ramalho)
 
July 14 2008
 
* Improved slug generation for friendly id's with apostrophes. (alistairholt)
* Added support for namespaced models in Rakefile. (David Ramalho)
 
June 23 2008
 
* Cached most recent slug to improve performance (Emilio Tagua).
 
June 10 2008
 
* Added ability to find friendly_ids by array:
 
Post.find(["first-post", "second-post"])
 
Many thanks to Emilio Tagua (miloops) for implementing this feature.
 
May 15 2008
 
* Made friendly_id raise an error with an informative message if the method
  used to get the text for the slug returns a blank value. Previously
  friendy_id would end up raising a TypeError with a less understandable error
  message in these cases.
 
May 12 2008
 
* Added gemspec. Installing friendly_id as a gem doesn't really get you
  anything at this point, since it won't work. But I'm adding this since
  Github offers gems for free. I'll make friendly_id work when installed as a
  gem soon.
 
 
April 18, 2008
 
* Improved code that adds an extension to the friendly_id when attempting to
  avoid name collisions. Previously identically named items in some cases
  would cause friendly_id to die a painful death, raigin an "I give up damnit!"
  error. Seriously. Sorry about that people... it should a little more
  "friendly" now.
 
March 13, 2008
 
* Added :dependent => :destroy to slug relation, as suggested by Emilio Tagua.
* Added code to avoid an error when renaming a slugged item back to a previously
  used name. In some cases this could cause your model to fail validation with
an "invalid slug" error.
* Incorporated documentation changes suggested by Jesse Crouch and Chris Nolan.
 
Feb 7, 2008
 
* Applied patches from blog commenter "suntzu" to fix problem with model
values were being overwritten. See:
  http://randomba.org/articles/2008/01/18/friendly_id
 
* Applied patch from Dan Blue to make friendly_id no longer ignore options on
ActiveRecordBase#find. Before, this code did not work:
 
Person.find(id, :conditions => "administrator = 1", :order => "created_on DESC")
 
* This was because the conditions were silently dropped. Dan's patch fixes
  this for friendly_id when you're using it in "non-slugging" mode. I still
  have not fixed this for find when using slugs because this is a bit more
  complicated and I haven't had time yet. For now a commented-out failing test
  has been added as a reminder for me to FIX THIS SOON.
 
* Added call to options.assert_valid_keys in has_friendly_id. Thanks to
W. Andrew Loe III for pointing out that this was missing.