mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
f44a0b1d52
Signed-off-by: Carl Lerche <carllerche@mac.com>
12 lines
396 B
Text
12 lines
396 B
Text
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/unit/account_observer_test.rb
|