Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix a side effect causing environment to be always loaded

  • Loading branch information...
commit f4cfef016429bcd456b48a47661cba4ecc2e8661 1 parent 53210b0
Cedric Darricau devsigner authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  tasks/translate_routes_tasks.rake
3  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)
Please sign in to comment.
Something went wrong with that request. Please try again.