diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-04 10:17:10 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-04 20:17:31 +0200 |
commit | 37ba0047a98279ad818744c5ab3b4bb5f3f3eef8 (patch) | |
tree | 043b1d75a819b08f6f37bae60c9cda85eeb77940 /railties/lib/generators/rails/controller | |
parent | 9e36dd4e1c2c96cbf7ff512ffd948ceeb92ccd29 (diff) | |
download | rails-37ba0047a98279ad818744c5ab3b4bb5f3f3eef8.tar.gz rails-37ba0047a98279ad818744c5ab3b4bb5f3f3eef8.tar.bz2 rails-37ba0047a98279ad818744c5ab3b4bb5f3f3eef8.zip |
Removed invoke_if and allow hook_for to accept boolean options.
Diffstat (limited to 'railties/lib/generators/rails/controller')
-rw-r--r-- | railties/lib/generators/rails/controller/controller_generator.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/generators/rails/controller/controller_generator.rb b/railties/lib/generators/rails/controller/controller_generator.rb index 3fed058c00..91470be833 100644 --- a/railties/lib/generators/rails/controller/controller_generator.rb +++ b/railties/lib/generators/rails/controller/controller_generator.rb @@ -8,8 +8,7 @@ module Rails template 'controller.rb', File.join('app/controllers', class_path, "#{file_name}_controller.rb") end - hook_for :template_engine, :test_framework - invoke_if :helper + hook_for :template_engine, :test_framework, :helper end end end |