public
Fork of insoshi/insoshi
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/toim/insoshi.git
Fixed admin/forums search bug
Michael Hartl (author)
Thu May 08 17:37:19 -0700 2008
commit  b5f56abed08996a3dd7cb7aa5d75f315bbfa5ecc
tree    c38204e173b0304805d53ec8d44e85a9112d0d0f
parent  32a5ad4099beea7b8fd160ccb10443233eef8d77
...
2
3
4
5
6
 
 
7
8
9
...
2
3
4
 
 
5
6
7
8
9
0
@@ -2,8 +2,8 @@ module SearchesHelper
0
   
0
   # Return the model to be searched based on params.
0
   def search_model
0
- return "Person" if params[:controller] == "home"
0
- return "ForumPost" if params[:controller] == "forums"
0
+ return "Person" if params[:controller] =~ /home/
0
+ return "ForumPost" if params[:controller] =~ /forums/
0
     params[:model] || params[:controller].classify
0
   end
0
   

Comments

    No one has commented yet.