Skip to content
railsengines.com

Rails Decorators

Rails::Decorators provides a clean, familiar API for decorating the behavior of a Rails engine

No ratings yet
Gem
rails-decorators
Repository
workarea-commerce/rails-decorators
License
MIT
Stars
10
Added
August 06, 2026

About

Rails::Decorators provides a clean, familiar API for decorating the behavior of a Rails engine.

Rails::Decorators achieves this in a manner similar to ActiveSupport::Concern - it dynamically creates a module out of the block passed, and then prepends that into the original class. The above is equivalent to (note that this would need to be required as well):

Installing it

ruby
# Gemfile
gem "rails-decorators"

Details

10 stars on GitHub · MIT licensed · maintained by workarea-commerce. Source: https://github.com/workarea-commerce/rails-decorators

Discussion (0)

Sign in to join the discussion.

No comments yet.