-
Support Ruby 3.2 by
File.exists?
=>File.exist?
in generator [@kyoshidajp] -
A little bit of internal code cleanup
- Decorate non-nil objects where
nil?
returns true, namely, ActionText::RichText body [@jamesbrooks]
- Support Rails 6.1 [@y-yagi]
- Fixed Ruby 2.7 keyword arguments warning [@pocke]
- Fixed NameError on ActionController::API controllers without jbuilder enhancement [@kamillle]
- Switched back from Ruby's
const_get
to Active Supportconstantize
for fetching decorator modules, due to inability to properly detect namespaced decorator [@sinsoku]
-
Switched from Active Support
constantize
to Ruby'sconst_get
when fetching decorator modules -
Switched
config
from ActiveSupport::Configurable to a simple Struct -
Association decoration now propagates from AssociationRelation to spawned Relations (e.g.
@post.comments.order(:id).each
) -
Dropped support for Rails 3.2, 4.0, and 4.1
- Decorate values in Hash recursively [@FumiyaShibusawa]
-
Improved ActionController::API support for Rails 5.0.x [@frodsan]
-
Fixed "NameError: undefined local variable or method `view_context'" with ActionController::API or when rendering in controllers
-
ActionController::API support [@frodsan]
-
ActiveDecorator::Decorator.instance.decorate
now returns the decorated object when the receiver was already a decorated object (it used to returnnil
) [@velonica1997] -
Update decorator_spec.rb syntax to respect RSpec 3 style [@memoht]
-
Fixed namespace for TestUnit generator with some refactorings [@yhirano55]