aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/generators/rails/observer/USAGE
blob: 9a20f55a8943ed0898e088900e905e9722d220e9 (plain) (tree)
1
2
3
4
5
6
7
8
9



                                                                          
                                                                       



                                        
                                             

                                                      
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