diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2013-11-01 11:42:18 +0100 |
---|---|---|
committer | Robin Dupret <robin.dupret@gmail.com> | 2013-11-01 14:40:29 +0100 |
commit | 1a566c87cb75b22be28917b0dd24fd7112d3235d (patch) | |
tree | 133eeb329a9491c5aec3f57b7db0252f710f033f /railties | |
parent | b79e4223f7b9ddcda1d64ceb8807f91de16e100f (diff) | |
download | rails-1a566c87cb75b22be28917b0dd24fd7112d3235d.tar.gz rails-1a566c87cb75b22be28917b0dd24fd7112d3235d.tar.bz2 rails-1a566c87cb75b22be28917b0dd24fd7112d3235d.zip |
Set the destination_root for plugins
Since the plugin generator is relying on the application one, we need to
define the proper root when creating the plugin. The AppBase class is
not setting the destination_root (this is done via the AppGenerator)
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/plugin/plugin_generator.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/plugin/plugin_generator.rb b/railties/lib/rails/generators/rails/plugin/plugin_generator.rb index 97ff6d1b8b..4312ace4e2 100644 --- a/railties/lib/rails/generators/rails/plugin/plugin_generator.rb +++ b/railties/lib/rails/generators/rails/plugin/plugin_generator.rb @@ -184,6 +184,7 @@ task default: :test end end + public_task :set_default_accessors! public_task :create_root def create_root_files |