1
0
Fork 0
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:
Robin 2016-06-14 11:51:01 -04:00 committed by GitHub
parent 793ead5d5f
commit c127544f41

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