# amatsuda/active_decorator

ORM agnostic truly Object-Oriented view helper for Rails 4, 5, 6, 7, and 8

Repository: https://github.com/amatsuda/active_decorator
Canonical: https://ross.abutalabs.com/products/active_decorator
Language: Ruby
License: MIT
License Family: permissive
Topics: ruby, rails, decorators
Last push: 2026-06-19T00:22:13+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 35, longevity 100
- inputs: {"age_days": 5388, "days_push": 76, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1128, forks 109 (observed 2026-08-28T04:03:41.995397+00:00)

## What it is
ActiveDecorator is a Ruby gem that provides ORM-agnostic, object-oriented view helpers for Rails applications. It automatically mixes decorator modules into model objects only within the view context, keeping views and helpers clean and object-oriented.

## Use cases
- decorate Rails models for view rendering
- keep view logic object-oriented instead of procedural helpers
- format model attributes in views without cluttering helpers
- auto-decorate model collections and associations in partials
- call ActionView helpers like link_to from decorator modules

## When to choose
- you use Rails 4 through 8 and want lightweight, implicit decorators
- you prefer decorator modules over presenter objects with explicit wrapping
- you want decorators that can call ActionView helper methods directly
- you use ActiveRecord, ActiveResource, or any plain Ruby object ORM

## When to avoid
- you use Sinatra, Hanami, or non-Rails frameworks
- you need standalone presenter objects usable outside the view context
- you prefer explicit decoration like Draper's `decorates` style

## Facets
- artifact type: library
- maturity: active
- function: templating, middleware
- domain: web-development, backend, developer-tools
- platform: ruby
- tags: rails, decorators, view-helpers, orm-agnostic, presenters, web-server

## Member repositories
- amatsuda/active_decorator (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:41.995397+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:38:31.818063+00:00, confidence not recorded.
  - readme: https://github.com/amatsuda/active_decorator (fetched 2026-08-28T04:03:41.995397+00:00, sha 12397e0d9c30)
- Data as of 2026-08-30T08:39:29.467469+00:00.
