aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generators/rails/observer
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-07-01 13:30:07 +0200
committerJosé Valim <jose.valim@gmail.com>2009-07-02 10:27:39 +0200
commit9541977e049d236564f34cf58660b61e154ccb32 (patch)
tree46a4828844eea7f3a0ff6eef69f938fcd0af54b7 /railties/lib/generators/rails/observer
parentbf672a12a3726a74a436746f4a82fefd9527686c (diff)
downloadrails-9541977e049d236564f34cf58660b61e154ccb32.tar.gz
rails-9541977e049d236564f34cf58660b61e154ccb32.tar.bz2
rails-9541977e049d236564f34cf58660b61e154ccb32.zip
Make scaffold controller generate agnostic code and mark some hooks as required.
Diffstat (limited to 'railties/lib/generators/rails/observer')
-rw-r--r--railties/lib/generators/rails/observer/observer_generator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/generators/rails/observer/observer_generator.rb b/railties/lib/generators/rails/observer/observer_generator.rb
index 9332c3542a..f5cedee91f 100644
--- a/railties/lib/generators/rails/observer/observer_generator.rb
+++ b/railties/lib/generators/rails/observer/observer_generator.rb
@@ -1,7 +1,7 @@
module Rails
module Generators
class ObserverGenerator < NamedBase #metagenerator
- hook_for :orm
+ hook_for :orm, :required => true
end
end
end