aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/rails/observer/USAGE
blob: d8f32a6a484873cf3078ab7618933574502b26cb (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/unit/account_observer_test.rb