diff options
author | Scott Bronson <brons_github@rinspin.com> | 2013-01-25 20:27:33 -0800 |
---|---|---|
committer | Scott Bronson <brons_github@rinspin.com> | 2013-01-25 20:27:33 -0800 |
commit | 21e4113e9d7ffa869c405c047ec2fa9fac11e8a1 (patch) | |
tree | e6525797ab32c6263312958b9df02d5bf3e9f4a8 /railties/Rakefile | |
parent | 9df25844ba77f5ebdfe6178c78c63de53c15c45c (diff) | |
download | rails-21e4113e9d7ffa869c405c047ec2fa9fac11e8a1.tar.gz rails-21e4113e9d7ffa869c405c047ec2fa9fac11e8a1.tar.bz2 rails-21e4113e9d7ffa869c405c047ec2fa9fac11e8a1.zip |
avoid using alias in generators
Ruby's alias produces public methods, causing a spurious Thor task
to be created. For example, this is the reason MigrationGenerator
currently has two tasks:
> ActiveRecord::Generators::MigrationGenerator.all_tasks.keys
=> ["singular_name", "create_migration_file"]
singular_name was meant to be an attribute, not a task. Because it's
public, it gets called as a task every time the generator is invoked.
The fix is to ensure all generator methods have the correct
visibility.
Diffstat (limited to 'railties/Rakefile')
0 files changed, 0 insertions, 0 deletions