Permalink
Browse files

Using double assignment in rake task.

  • Loading branch information...
1 parent 6f7f202 commit 732a74f851cd5dcfb55f78e8acfe1a1d2110691f @thomasdarde thomasdarde committed May 18, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/tasks/tolk_tasks.rake
@@ -1,8 +1,7 @@
namespace :tolk do
desc "Update locale"
task :update_locale, [:old_name, :new_name] => :environment do |t, args|
- old_name = args[:old_name]
- new_name = args[:new_name]
+ old_name, new_name = args[:old_name], args[:new_name]
puts Tolk::Locale.rename(old_name, new_name)
end

0 comments on commit 732a74f

Please sign in to comment.