I'm Mary Poppins, y'all!

auto_decorator

Convention-based decorator autoloading for Rails models.

Ruby on Rails Active Record Decorator

Convention-based decorator autoloading for Rails models.

Decorators are plain Ruby modules that get automatically included into your model classes based on file naming convention — no configuration required.

Why not Draper? Draper wraps objects in presenter classes. auto_decorator adds methods directly to the model. Less indirection, less boilerplate, same result for most use cases.

Share this post