myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2932] trunk/app/controllers/application_controll


From: noreply
Subject: [myexperiment-hackers] [2932] trunk/app/controllers/application_controller.rb: added ability to sort pivot views by user
Date: Wed, 15 Feb 2012 03:53:23 -0500 (EST)

Revision
2932
Author
dgc
Date
2012-02-15 03:53:23 -0500 (Wed, 15 Feb 2012)

Log Message

added ability to sort pivot views by user

Modified Paths

Diff

Modified: trunk/app/controllers/application_controller.rb (2931 => 2932)


--- trunk/app/controllers/application_controller.rb	2012-02-14 14:01:21 UTC (rev 2931)
+++ trunk/app/controllers/application_controller.rb	2012-02-15 08:53:23 UTC (rev 2932)
@@ -427,6 +427,13 @@
         },
 
         {
+          :option => 'member',
+          :label  => 'User',
+          :joins  => [ :users ],
+          :order  => 'users.name, contributions.rank DESC'
+        },
+
+        {
           :option => 'rating',
           :label  => 'Community rating',
           :order  => 'contributions.rating DESC, contributions.rank DESC'

reply via email to

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