myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2130] trunk: removed a file/group hack


From: noreply
Subject: [myexperiment-hackers] [2130] trunk: removed a file/group hack
Date: Wed, 18 Mar 2009 11:44:18 -0400 (EDT)

Revision
2130
Author
dgc
Date
2009-03-18 11:44:17 -0400 (Wed, 18 Mar 2009)

Log Message

removed a file/group hack

Modified Paths

Diff

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]