aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbdelkader Boudih <terminale@gmail.com>2015-03-16 16:44:52 +0000
committerAbdelkader Boudih <terminale@gmail.com>2015-03-16 16:44:52 +0000
commit017415ed19ae9307f138eee61e9f8cae33bb77ea (patch)
treee28e07f0459bd6f3e3af597259922f454369d36b
parenta5a4b56029f1a83cfc81852f8ca76f9161abcbaa (diff)
parent0b2f8b1cb916d1aadbe8de6695662af75fdeb2ae (diff)
downloadrails-017415ed19ae9307f138eee61e9f8cae33bb77ea.tar.gz
rails-017415ed19ae9307f138eee61e9f8cae33bb77ea.tar.bz2
rails-017415ed19ae9307f138eee61e9f8cae33bb77ea.zip
Merge pull request #19357 from boddhisattva/custom_rake_task_with_args_example
Adds more clarity on how to use custom rake tasks with arguments passed to it [ci skip]
-rw-r--r--guides/source/command_line.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/command_line.md b/guides/source/command_line.md
index 6f5a6b7957..d153e0bfa6 100644
--- a/guides/source/command_line.md
+++ b/guides/source/command_line.md
@@ -526,8 +526,8 @@ end
To pass arguments to your custom rake task:
```ruby
-task :task_name, [:arg_1] => [:pre_1, :pre_2] do |t, args|
- # You can use args from here
+task :task_name, [:arg_1] => [:prerequisite_1, :prerequisite_2] do |task, args|
+ argument_1 = args.arg_1
end
```