[71253] branches/gsoc10-mpwa/mpwa/config/application.rb

jrozner at macports.org jrozner at macports.org
Mon Sep 6 16:39:27 PDT 2010


Revision: 71253
          http://trac.macports.org/changeset/71253
Author:   jrozner at macports.org
Date:     2010-09-06 16:39:26 -0700 (Mon, 06 Sep 2010)
Log Message:
-----------
fixed deprecation warnings

Modified Paths:
--------------
    branches/gsoc10-mpwa/mpwa/config/application.rb

Modified: branches/gsoc10-mpwa/mpwa/config/application.rb
===================================================================
--- branches/gsoc10-mpwa/mpwa/config/application.rb	2010-09-06 23:37:08 UTC (rev 71252)
+++ branches/gsoc10-mpwa/mpwa/config/application.rb	2010-09-06 23:39:26 UTC (rev 71253)
@@ -13,7 +13,7 @@
     # -- all .rb files in that directory are automatically loaded.
 
     # Custom directories with classes and modules you want to be autoloadable.
-    config.autoload_paths += %W(#{RAILS_ROOT}/app/sweepers)
+    config.autoload_paths += %W(#{Rails.root.to_s}/app/sweepers)
 
     # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
     # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
@@ -24,6 +24,5 @@
 
     # Configure sensitive parameters which will be filtered from the log file.
     config.filter_parameters += [:password]
-    config.load_paths += %W( #{RAILS_ROOT}/app/sweepers )
   end
 end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100906/0eba8f91/attachment.html>


More information about the macports-changes mailing list