Modified: trunk/app/controllers/search_controller.rb (2129 => 2130)
--- trunk/app/controllers/search_controller.rb 2009-03-18 14:29:21 UTC (rev 2129)
+++ trunk/app/controllers/search_controller.rb 2009-03-18 15:44:17 UTC (rev 2130)
@@ -14,10 +14,10 @@
return false
end
- # Hacks for 'Groups' --> 'Networks' and 'Files' --> 'Blobs' renames
- @type = 'networks' if @type == 'groups'
- @type = 'blobs' if @type == 'files'
-
+ if Conf.model_aliases.key?(@type.camelize.singularize)
+ @type = address@hidden
+ end
+
if @type == "all"
search_all
else
Modified: trunk/config/settings.yml.pre (2129 => 2130)
--- trunk/config/settings.yml.pre 2009-03-18 14:29:21 UTC (rev 2129)
+++ trunk/config/settings.yml.pre 2009-03-18 15:44:17 UTC (rev 2130)
@@ -193,6 +193,7 @@
# model_aliases - These are visible names for models where the desired visible
# name might conflict with existing classes (e.g. "File" or
# "Application")
+
model_aliases:
File: Blob