blob: 1d2de7f17f9eacbf53674087cbfdc55803c0de91 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
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:
`rails generate observer Account`
For ActiveRecord and TestUnit it creates:
Observer: app/models/account_observer.rb
TestUnit: test/observers/account_observer_test.rb
|