diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-02-11 14:08:12 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-02-11 14:08:12 -0800 |
commit | c5034d60dba0cd31a6a8c612ee35d63b8127793a (patch) | |
tree | ccf318ce3d403c1fc5453f492dc1afae3ebc3dd1 /railties/lib/rails | |
parent | e00ab2dab9671603dcc8ab571baf1b1df100f99b (diff) | |
download | rails-c5034d60dba0cd31a6a8c612ee35d63b8127793a.tar.gz rails-c5034d60dba0cd31a6a8c612ee35d63b8127793a.tar.bz2 rails-c5034d60dba0cd31a6a8c612ee35d63b8127793a.zip |
add a send so `apply` can be called. Fixes #13510
THIS IS A HUGE HACK. Thor does not allow us to define public methods
without turning them in to "thor tasks". That means we cannot subclass
the `apply` method and make it public, so we have to make the method
private and call `send` on it.
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/tasks/framework.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/framework.rake b/railties/lib/rails/tasks/framework.rake index e669315934..94e8f83e86 100644 --- a/railties/lib/rails/tasks/framework.rake +++ b/railties/lib/rails/tasks/framework.rake @@ -10,7 +10,7 @@ namespace :rails do require 'rails/generators' require 'rails/generators/rails/app/app_generator' generator = Rails::Generators::AppGenerator.new [Rails.root], {}, destination_root: Rails.root - generator.apply template, verbose: false + generator.send :apply, template, verbose: false end namespace :templates do |