Skip to content

Commit d0c425b

Browse files
committed
Merge pull request rails#12329 from benmanns/docrails
Update references to wycats/thor to erikhuda/thor.
1 parent 4b3eaec commit d0c425b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

guides/source/generators.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ $ rails generate helper --help
3535
Creating Your First Generator
3636
-----------------------------
3737

38-
Since Rails 3.0, generators are built on top of [Thor](https://github.com/wycats/thor). Thor provides powerful options parsing and a great API for manipulating files. For instance, let's build a generator that creates an initializer file named `initializer.rb` inside `config/initializers`.
38+
Since Rails 3.0, generators are built on top of [Thor](https://github.com/erikhuda/thor). Thor provides powerful options parsing and a great API for manipulating files. For instance, let's build a generator that creates an initializer file named `initializer.rb` inside `config/initializers`.
3939

4040
The first step is to create a file at `lib/generators/initializer_generator.rb` with the following content:
4141

@@ -47,7 +47,7 @@ class InitializerGenerator < Rails::Generators::Base
4747
end
4848
```
4949

50-
NOTE: `create_file` is a method provided by `Thor::Actions`. Documentation for `create_file` and other Thor methods can be found in [Thor's documentation](http://rdoc.info/github/wycats/thor/master/Thor/Actions.html)
50+
NOTE: `create_file` is a method provided by `Thor::Actions`. Documentation for `create_file` and other Thor methods can be found in [Thor's documentation](http://rdoc.info/github/erikhuda/thor/master/Thor/Actions.html)
5151

5252
Our new generator is quite simple: it inherits from `Rails::Generators::Base` and has one method definition. When a generator is invoked, each public method in the generator is executed sequentially in the order that it is defined. Finally, we invoke the `create_file` method that will create a file at the given destination with the given content. If you are familiar with the Rails Application Templates API, you'll feel right at home with the new generators API.
5353

@@ -422,7 +422,7 @@ Generator methods
422422

423423
The following are methods available for both generators and templates for Rails.
424424

425-
NOTE: Methods provided by Thor are not covered this guide and can be found in [Thor's documentation](http://rdoc.info/github/wycats/thor/master/Thor/Actions.html)
425+
NOTE: Methods provided by Thor are not covered this guide and can be found in [Thor's documentation](http://rdoc.info/github/erikhuda/thor/master/Thor/Actions.html)
426426

427427
### `gem`
428428

0 commit comments

Comments
 (0)