Skip to content

Commit

Permalink
Merge pull request #922 from chain792/edit_readme
Browse files Browse the repository at this point in the history
Update README with config to disable generation of decorator files
  • Loading branch information
y-yagi authored Aug 27, 2024
2 parents 14d0ec0 + e20a37a commit 2836ea7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,15 @@ rails generate decorator Article

...to create the `ArticleDecorator`.

If you don't want Rails to generate decorator files when generating a new controller,
you can add the following configuration to your `config/application.rb` file:

```ruby
config.generators do |g|
g.decorator false
end
```

### Accessing Helpers

Normal Rails helpers are still useful for lots of tasks. Both Rails' provided
Expand Down

0 comments on commit 2836ea7

Please sign in to comment.