myexperiment-hackers
[Top][All Lists]
Advanced

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

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


From: noreply
Subject: [myexperiment-hackers] [3520] trunk/app/controllers/application_controller.rb: fixed issue with commenting on files
Date: Thu, 25 Apr 2013 14:58:26 +0000 (UTC)

Revision
3520
Author
dgc
Date
2013-04-25 14:58:26 +0000 (Thu, 25 Apr 2013)

Log Message

fixed issue with commenting on files

Modified Paths

Diff

Modified: trunk/app/controllers/application_controller.rb (3519 => 3520)


--- trunk/app/controllers/application_controller.rb	2013-04-25 13:32:19 UTC (rev 3519)
+++ trunk/app/controllers/application_controller.rb	2013-04-25 14:58:26 UTC (rev 3520)
@@ -397,7 +397,7 @@
 
   def extract_resource_context(params)
     (Conf.contributor_models + Conf.contributable_models).each do |model_name|
-      id_param = "#{Conf.to_visible(model_name.underscore)}_id"
+      id_param = "#{model_name.underscore}_id"
       return Object.const_get(model_name).find_by_id(params[id_param]) if params[id_param]
     end
 

reply via email to

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