mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
typo in README menthod -> method
This commit is contained in:
parent
0efa0403c2
commit
74f39d7b07
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ def show
|
|||
end
|
||||
```
|
||||
|
||||
In the view, you can use the decorator in exactly the same way as you would have used the model. But whenever you start needing logic in the view or start thinking about a helper menthod, you can implement a method on the decorator instead.
|
||||
In the view, you can use the decorator in exactly the same way as you would have used the model. But whenever you start needing logic in the view or start thinking about a helper method, you can implement a method on the decorator instead.
|
||||
|
||||
Let's look at how you could convert an existing Rails helper to a decorator method. You have this existing helper:
|
||||
|
||||
|
|
Loading…
Reference in a new issue