lib/generators/templates/config/typus/README in typus-3.1.0.rc19 vs lib/generators/templates/config/typus/README in typus-3.1.0
- old
+ new
@@ -1,12 +1,11 @@
# Models
This is an example of a **Typus** enabled model with all available options.
-You can use this example to customize your YAML files which only have set the
-most common settings.
+Use this example as reference to customize your YAML files.
- Post:
+ 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?
@@ -38,20 +37,19 @@
per_page: 25
start_year: 1990
# Roles
-In this file you can configure the actions available for each of your models
-on the application. You can also use the 'all' shortcut to allow the user the
-access to all actions.
+This is an example of a roles file. Use this example as reference to customize
+your YAML files.
admin:
- Post: create, read, update, delete
+ Entry: create, read, update, delete
Category: create, read, update, delete
- TypusUser: all
+ AdminUser: all
editor:
- Post: create, read, update
+ Entry: create, read, update
Category: read, update
You can also define `resources` which are not related to a model, for example
to control `Redis`.