Sha256: 2b96c7a5a6f80f0927630f53c2383dfcec03244fa47bde826e1250488f7ef4bb

Contents?: true

Size: 1.56 KB

Versions: 25

Compression:

Stored size: 1.56 KB

Contents

# Models

This is an example of a **Typus** enabled model with all available options.
Use this example as reference to customize your YAML files.

    Entry:
      fields:
        default: id, title, category_id, created_at, is_published?
        list: id, title, category_id, created_at, is_published?
        form: title, body, is_published?, created_at
        show: title, category, is_published?
        relationship: title, status
        options:
          booleans:
            is_published: ["Yes, it is", "No, it isn't"]
          date_formats:
            created_at: post_long
          selectors:
          templates:
            body: rich_text
      actions:
        index: cleanup
        edit: send_as_newsletter
        show: rebuild
      order_by: created_at
      relationships:
      filters: is_published?, created_at, category_id
      search: title, body
      application: Application
      description: Some text to describe the model
      options:
        default_action_on_item: show
        end_year: 2015
        form_rows: 25
        minute_step: 15
        only_user_items: true
        per_page: 25
        start_year: 1990

# Roles

This is an example of a roles file. Use this example as reference to customize
your YAML files.

    admin:
      Entry: create, read, update, delete
      Category: create, read, update, delete
      AdminUser: all

    editor:
      Entry: create, read, update
      Category: read, update

You can also define `resources` which are not related to a model, for example
to control `Redis`.

    admin:
      Redis: index, flush_all

Version data entries

25 entries across 25 versions & 3 rubygems

Version Path
brainsome_typus-4.0.0.beta13 lib/generators/templates/config/typus/README
brainsome_typus-4.0.0.beta12 lib/generators/templates/config/typus/README
brainsome_typus-4.0.0.beta11 lib/generators/templates/config/typus/README
brainsome_typus-4.0.0.beta10 lib/generators/templates/config/typus/README
brainsome_typus-4.0.0.beta9 lib/generators/templates/config/typus/README
brainsome_typus-4.0.0.beta8 lib/generators/templates/config/typus/README
brainsome_typus-4.0.0.beta7 lib/generators/templates/config/typus/README
typus-rails4-4.0.0.beta6 lib/generators/templates/config/typus/README
brainsome_typus-4.0.0.beta6 lib/generators/templates/config/typus/README
brainsome_typus-4.0.0.beta5 lib/generators/templates/config/typus/README
brainsome_typus-4.0.0.beta4 lib/generators/templates/config/typus/README
brainsome_typus-4.0.0.beta3 lib/generators/templates/config/typus/README
brainsome_typus-4.0.0.beta2 lib/generators/templates/config/typus/README
brainsome_typus-4.0.0.beta1 lib/generators/templates/config/typus/README
typus-3.1.10 lib/generators/templates/config/typus/README
typus-3.1.9 lib/generators/templates/config/typus/README
typus-3.1.8 lib/generators/templates/config/typus/README
typus-3.1.7 lib/generators/templates/config/typus/README
typus-3.1.6 lib/generators/templates/config/typus/README
typus-3.1.5 lib/generators/templates/config/typus/README