myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2515] branches/dashboard/app/controllers/packs_c


From: noreply
Subject: [myexperiment-hackers] [2515] branches/dashboard/app/controllers/packs_controller.rb: dublin core addition
Date: Mon, 27 Sep 2010 12:23:27 -0400 (EDT)

Revision
2515
Author
kkollara
Date
2010-09-27 12:23:27 -0400 (Mon, 27 Sep 2010)

Log Message

dublin core addition

Modified Paths

Diff

Modified: branches/dashboard/app/controllers/packs_controller.rb (2514 => 2515)


--- branches/dashboard/app/controllers/packs_controller.rb	2010-09-27 16:21:45 UTC (rev 2514)
+++ branches/dashboard/app/controllers/packs_controller.rb	2010-09-27 16:23:27 UTC (rev 2515)
@@ -392,7 +392,11 @@
   
   def find_pack_auth
     begin
+	if action_name == 'show'
+		pack = Pack.find(params[:id], :include=> [{:contribution=>:policy},:citations, :tags,:ratings,:versions,:reviews,:comments, :pack_contributatble_entries,:pack_remote_entries ])
+		else
       pack = Pack.find(params[:id])
+	  end
       
       if Authorization.is_authorized?(action_name, nil, pack, current_user)
         @pack = pack

reply via email to

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