Draper v3.0.0 Release Notes

Release Date: 2017-05-09 // over 4 years ago
  • ๐Ÿ’ฅ Breaking Changes

    • ๐Ÿ“‡ Rename UninferrableSourceError to UninferrableObjectError #768
    • Remove conflicting source aliases: source, to_source, source_class and source_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 when NameError 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