public
Fork of caring/acts_as_url_param
Description: Pretty url support for Ruby on Rails applications
Homepage: http://www.caring.com
Clone URL: git://github.com/joshuabates/acts_as_url_param.git
fixed bug about redirects index
Chris Eppstein (author)
Fri Feb 01 12:03:17 -0800 2008
commit  6374900e101a464c6a2b7d43c8da61689f0eb8ae
tree    bb44329142e6ceba38d5f4a987256624eadfbb10
parent  af04abad9c114c7c2735edb52e72d27ddb5b892a
...
55
56
57
58
 
59
60
61
...
55
56
57
 
58
59
60
61
0
@@ -55,7 +55,7 @@ module ActsAsUrlParam
0
       end
0
       
0
       meta_def :find_redirect do |name|
0
- redirect = Redirect.find(:first, :conditions => ["redirectable_class = ? AND url_name = ?", self.to_s, name])
0
+ redirect = Redirect.find(:first, :conditions => ["redirectable_class = ? AND url_name = ?", self.to_s, name], :order => "created_at desc")
0
         redirect.redirectable if redirect
0
       end
0
     end

Comments

    No one has commented yet.