mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
Extend the "Proxying Class Methods" section
This commit is contained in:
parent
793ead5d5f
commit
c127544f41
1 changed files with 2 additions and 0 deletions
|
@ -564,6 +564,8 @@ end
|
|||
|
||||
This is only necessary when proxying class methods.
|
||||
|
||||
Once this association between the decorator and the model is set up, you can call `SomeModel.decorator_class` to access class methods defined in the decorator. If necessary, you can check if your model is decorated with `SomeModel.decorator_class?`.
|
||||
|
||||
### Making Models Decoratable
|
||||
|
||||
Models get their `decorate` method from the `Draper::Decoratable` module, which
|
||||
|
|
Loading…
Reference in a new issue