public
Description: Rails Sitemap Plugin / Site Map Plugin for Rails. A beautiful rails sitemap plugin that talks to Google, Yahoo and MSN when updated. Sitemap features clean handcrafted XHTML, XML with XSLT and custom finder options for your named routes.
Clone URL: git://github.com/queso/sitemap.git
Search Repo:
Ensuring we don't pass empty custom finder strings.  This was an issue 
with rails 2.1, mostly.
queso (author)
Sat Jun 14 13:19:48 -0700 2008
commit  1230e2a1ad0bdbac8e339e4fc3c0d0cec65e7d2f
tree    069c90012c83cc047cbb829102ac43affd5e8251
parent  b4137231e1bc99ab0a31fa20cfbb4dbd4d41cef0
...
18
19
20
21
 
 
22
23
24
...
18
19
20
 
21
22
23
24
25
0
@@ -18,7 +18,8 @@ class SitemapWidget < ActiveRecord::Base
0
   end
0
   
0
   def finder
0
- (custom_finder || "find").to_sym
0
+ method = (custom_finder.empty? || custom_finder.nil?) ? "find" : custom_finder.to_s
0
+ method.to_sym
0
   end
0
   
0
 end

Comments

  • brupm Sat Jun 14 13:42:21 -0700 2008

    Thank you!