diff options
Diffstat (limited to 'railties/lib/generators/rails/observer/USAGE')
-rw-r--r-- | railties/lib/generators/rails/observer/USAGE | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/railties/lib/generators/rails/observer/USAGE b/railties/lib/generators/rails/observer/USAGE new file mode 100644 index 0000000000..9a20f55a89 --- /dev/null +++ b/railties/lib/generators/rails/observer/USAGE @@ -0,0 +1,12 @@ +Description: + Stubs out a new observer. Pass the observer name, either CamelCased or + under_scored, as an argument. + + This generator only invokes your ORM and test framework generators. + +Example: + `./script/generate observer Account` + + For ActiveRecord and TestUnit it creates: + Observer: app/models/account_observer.rb + TestUnit: test/unit/account_observer_test.rb |