All Versions
22
Latest Version
Avg Release Cycle
148 days
Latest Release
1065 days ago

Changelog History
Page 3

  • v1.0.0.beta2 Changes

    December 03, 2012
    • has_finders is now decorates_finders. 33f18aa
    • If a finder method is used, and the source class is not set and cannot be inferred, an UninferrableSourceError is raised. 8ef5bf2
    • Class methods are now properly delegated again. 731995a
    • We no longer respond_to? private methods on the source. 18ebac8
    • ๐Ÿš… Rails versioning relaxed to support Rails 4. 8bfd393
  • v1.0.0.beta1 Changes

    November 30, 2012
    • Renaming Draper::Base to Draper::Decorator. This is the most significant change you'll need to upgrade your application. 025742c
    • โž• Added an internal Rails application for integration tests. This won't affect your application, but we're now running a set of Cucumber tests inside of a Rails app in both development and production mode to help ensure that we don't make changes that break Draper. 90a4859
    • โž• Add #decorated? method. This gives us a free RSpec matcher, be_decorated. 834a6fd
    • ๐Ÿšš #decorates is no longer needed inside your models, and should be removed. Decorators automatically infer the class they decorate. e1214d9
    • 0๏ธโƒฃ Decorators do not automatically come with 'finders' by default. If you'd like to use SomeDecorator.find(1), for example, simply add #has_finders to the decorator to include them. 42b6f78
    • To refer to the object being decorated, #source is now the preferred method. 1e84fcb
    • ActiveModel::Serialization is included in Decorators if you've requred ActiveModel::Serializers, so that decorators can be serialized. c4b3527
    • โœ… Properly support Test::Unit. 087e134

    ๐Ÿ”จ And many small bug fixes and refactorings.