Draper v3.0.0 Release Notes
Release Date: 2017-05-09 // almost 7 years ago-
๐ฅ Breaking Changes
- ๐ Rename UninferrableSourceError to UninferrableObjectError #768
- Remove conflicting source aliases:
source
,to_source
,source_class
andsource_class?
#786
๐ New Features
- Generator for creating
ApplicationDecorator
that other decorators inherit from #796 - ๐ง Draper configuration with ability to customize the controller Draper uses #788
- โ Added support for Rails 5 API-only applications #793
- โ Added support for Rails runner #739
Other Changes
- Clear view context when the controller changes #799
- โ Removed previously deprecated functionality #785
- Only delegate === if other is an instance of a class that inherits from
Decorator
#720 - 0๏ธโฃ Always default to
CollectionDecorator
whenNameError
is raised #795 - ๐ Fixed issues in order to support Rails 5.1
- ๐ Fixed a bug where helpers were used inside a decorator and this decorator was used outside of controller context