Skip to content

Commit 06464da

Browse files
goosyspablobm
andcommitted
Apply suggestions from code review
Co-authored-by: Pablo Brasero <36066+pablobm@users.noreply.github.com>
1 parent a43b6e6 commit 06464da

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/adding_custom_field_types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ rails generate administrate:field gravatar --look custom
6868

6969
This will generate three files:
7070

71-
- `app/fields/gravatar_field.rb`
71+
- `app/fields/gravatar_field.rb` (assuming it doesn't exist already)
7272
- `app/views/fields/gravatar_field/looks/custom/_show.html.erb`
7373
- `app/views/fields/gravatar_field/looks/custom/_index.html.erb`
7474
- `app/views/fields/gravatar_field/looks/custom/_form.html.erb`

lib/generators/administrate/field/field_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class FieldGenerator < Rails::Generators::NamedBase
44
class_option(
55
:look,
66
type: :string,
7-
desc: "Specify the look for the field",
7+
desc: "Generate templates for a \"look\" (alternative representation of the field)",
88
default: ""
99
)
1010

lib/generators/administrate/views/field_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class FieldGenerator < Administrate::ViewGenerator
77
class_option(
88
:look,
99
type: :string,
10-
desc: "Specify the look for the field",
10+
desc: "Generate templates for a \"look\" (alternative representation of the field)",
1111
default: ""
1212
)
1313

0 commit comments

Comments
 (0)