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!