diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-01 21:23:30 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-02 10:27:40 +0200 |
commit | a7c1591315b49e94798d6d51446cbc4139463140 (patch) | |
tree | 983212f5a306d88e8d3ec227bdf7ec0e23d8dcc5 /railties/lib/generators/rails/scaffold/scaffold_generator.rb | |
parent | 7f7afdf0f11b6748ace1ee48f8d604637058001e (diff) | |
download | rails-a7c1591315b49e94798d6d51446cbc4139463140.tar.gz rails-a7c1591315b49e94798d6d51446cbc4139463140.tar.bz2 rails-a7c1591315b49e94798d6d51446cbc4139463140.zip |
Added stylesheets controller which is invoked by scaffold.
Diffstat (limited to 'railties/lib/generators/rails/scaffold/scaffold_generator.rb')
-rw-r--r-- | railties/lib/generators/rails/scaffold/scaffold_generator.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/generators/rails/scaffold/scaffold_generator.rb b/railties/lib/generators/rails/scaffold/scaffold_generator.rb index 0bfbed42a0..af44c8ba65 100644 --- a/railties/lib/generators/rails/scaffold/scaffold_generator.rb +++ b/railties/lib/generators/rails/scaffold/scaffold_generator.rb @@ -4,9 +4,9 @@ module Rails module Generators class ScaffoldGenerator < ResourceGenerator #metagenerator remove_hook_for :actions, :resource_controller - hook_for :scaffold_controller, :required => true - # invoke_if stylesheets + hook_for :scaffold_controller, :required => true + hook_for :stylesheets end end end |