Sha256: 8a91fb33674c361cd5cc2eb1e6cf589b7cef348b8e20b9a65c96cd8c698702a5

Contents?: true

Size: 1.29 KB

Versions: 12

Compression:

Stored size: 1.29 KB

Contents

Description:
    Installs the basic framework for Acl9. Creates the necessary migration for
    your new roles table and the join table for associating roles with users.

    The optional arguments are as follows:

        subject:  if you want something other than 'User'
        role:     if you want something other than 'Role'
        objects:  space separated list of class names of objects that you can
                  attach roles to (see the docs)

Examples:
    `rails g acl9:setup`

        This will create:
            Migration:      db/migrate/XXX_create_role_tables.rb
            Role Model:     app/models/role.rb
            Config:         config/initializers/acl9.rb

        And it will update (or create a skeleton):
            Subject Model:  app/models/user.rb

    `rails g acl9:setup account permission school classroom department`

        This will create:
            Migration:      db/migrate/XXX_create_permission_tables.rb
            Role Model:     app/models/permission.rb
            Config:         config/initializers/acl9.rb

        And it will update (or create a skeleton):
            Subject Model:  app/models/account.rb
            Object Models:  app/models/school.rb
                            app/models/classroom.rb
                            app/models/department.rb

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
careacademy-acl9-3.4.0 lib/generators/acl9/setup/USAGE
careacademy-acl9-3.3.0 lib/generators/acl9/setup/USAGE
acl9-3.2.0 lib/generators/acl9/setup/USAGE
acl9-3.1.0 lib/generators/acl9/setup/USAGE
acl9-3.0.0 lib/generators/acl9/setup/USAGE
acl9-2.1.2 lib/generators/acl9/setup/USAGE
acl9-2.1.1 lib/generators/acl9/setup/USAGE
acl9-2.1.0 lib/generators/acl9/setup/USAGE
acl9-2.0.0 lib/generators/acl9/setup/USAGE
acl9-1.3.0 lib/generators/acl9/setup/USAGE
acl9-1.2.1 lib/generators/acl9/setup/USAGE
acl9-1.2.0 lib/generators/acl9/setup/USAGE