Extend the "Proxying Class Methods" section

This commit is contained in:
Robin 2016-06-14 11:51:01 -04:00 committed by GitHub
parent 793ead5d5f
commit c127544f41
1 changed files with 2 additions and 0 deletions

View File

@ -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