diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-12-05 21:30:18 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-12-05 21:30:18 +0100 |
commit | eb4deb9dc6493de5b7d452a0500707dd8ce69200 (patch) | |
tree | aa5eebf0981c16371273d5876d6b98be066d1b3d /railties/lib/rails | |
parent | 290866cb934ecddb377e2aef3873e8e930647802 (diff) | |
download | rails-eb4deb9dc6493de5b7d452a0500707dd8ce69200.tar.gz rails-eb4deb9dc6493de5b7d452a0500707dd8ce69200.tar.bz2 rails-eb4deb9dc6493de5b7d452a0500707dd8ce69200.zip |
`exists?` isn't for users.
Checking that a command exists before running it is an implementation detail
of the Rails command and Rake task world right now.
Eventually I'd like to get rid of `exists?`, when I've worked out another way
to fall back to run the old tasks.
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/commands/command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/command.rb b/railties/lib/rails/commands/command.rb index 2e99046e9a..0d4d44ff89 100644 --- a/railties/lib/rails/commands/command.rb +++ b/railties/lib/rails/commands/command.rb @@ -31,7 +31,7 @@ module Rails options_for(command_name) { |opts, _| opts.banner = banner } end - def exists?(task_name) + def exists?(task_name) # :nodoc: command_name = self.class.command_name_for(task_name) !command_for(command_name).nil? end |