myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2850] trunk: removed profile preloading on most


From: noreply
Subject: [myexperiment-hackers] [2850] trunk: removed profile preloading on most recent and last active user lists
Date: Mon, 28 Nov 2011 11:54:40 -0500 (EST)

Revision
2850
Author
dgc
Date
2011-11-28 11:54:40 -0500 (Mon, 28 Nov 2011)

Log Message

removed profile preloading on most recent and last active user lists

Modified Paths

Diff

Modified: trunk/app/models/user.rb (2849 => 2850)


--- trunk/app/models/user.rb	2011-11-28 16:10:38 UTC (rev 2849)
+++ trunk/app/models/user.rb	2011-11-28 16:54:40 UTC (rev 2850)
@@ -29,8 +29,7 @@
     self.find(:all,
               :order => "users.created_at DESC",
               :limit => limit,
-              :conditions => "users.activated_at IS NOT NULL",
-              :include => :profile)
+              :conditions => "users.activated_at IS NOT NULL")
             
   end
   
@@ -42,8 +41,7 @@
     self.find(:all,
               :order => "users.last_seen_at DESC",
               :limit => limit,
-              :conditions => "users.activated_at IS NOT NULL",
-              :include => :profile)
+              :conditions => "users.activated_at IS NOT NULL")
             
   end
   

Modified: trunk/config/environments/production.rb (2849 => 2850)


--- trunk/config/environments/production.rb	2011-11-28 16:10:38 UTC (rev 2849)
+++ trunk/config/environments/production.rb	2011-11-28 16:54:40 UTC (rev 2850)
@@ -4,6 +4,8 @@
 # Code is not reloaded between requests
 config.cache_classes = true
 
+config.log_path="log/production.#{Time.new().strftime(fmt='%Y%m%d')}.#{Process.pid}.log"
+
 # Full error reports are disabled and caching is turned on
 config.action_controller.consider_all_requests_local = false
 config.action_controller.perform_caching             = true
@@ -25,4 +27,4 @@
 # config.action_mailer.raise_delivery_errors = false
 
 # Enable threaded mode
-# config.threadsafe!
\ No newline at end of file
+# config.threadsafe!

reply via email to

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