File: USAGE

package info (click to toggle)
ruby-rails-observers 0.1.5-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 164 kB
  • sloc: ruby: 449; makefile: 3
file content (12 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (6)
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