Permalink
Browse files

Fix a side effect causing environment to be always loaded

  • Loading branch information...
1 parent 53210b0 commit f4cfef016429bcd456b48a47661cba4ecc2e8661 @devsigner devsigner committed Oct 27, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 tasks/translate_routes_tasks.rake
@@ -1,10 +1,9 @@
config_path = File.expand_path(File.join(RAILS_ROOT, 'config'))
-require File.join(config_path, 'environment')
namespace :translate_routes do
desc "Updates yaml translation files for the given languages"
- task :update_yaml, :langs do |task, args|
+ task :update_yaml, :langs, :needs => :environment do |task, args|
segments = ActionController::Routing::Translator.original_static_segments
if args[:langs].is_a?(String)

0 comments on commit f4cfef0

Please sign in to comment.