File: USAGE

package info (click to toggle)
ruby-activeldap 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,588 kB
  • sloc: ruby: 18,143; sh: 12; makefile: 5
file content (18 lines) | stat: -rw-r--r-- 647 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description:
    The model_active_ldap generator creates stubs for a new model.

    The generator takes a model name as its argument.  The model name may be given in CamelCase or under_score and
    should not be suffixed with 'Model'.

    The generator creates a model class in app/models, a test suite in test/unit, and test fixtures in
    test/fixtures/singular_name.yml. It will not create a migration.

Examples:
    rails generate active_ldap:model user
    
        This will create a User model:
            Model:      app/models/user.rb
            Test:       test/unit/user_test.rb
            Fixtures:   test/fixtures/users.yml