Skip to content

Commit

Permalink
Update README with config to disable generation of decorator files
Browse files Browse the repository at this point in the history
  • Loading branch information
chain792 committed Feb 24, 2023
1 parent 26a18c8 commit ce0e6dc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,14 @@ 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 ce0e6dc

Please sign in to comment.