Registry / web-framework / active-decorator

active-decorator

JSON →
library1.5.1rbrubygemsunverified

A simple and Rubyish view helper for Rails that automatically decorates objects.

web-frameworkutility
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

require 'active_decorator'

Shows how to define a decorator that adds a full_name method.

require 'active_decorator' # In a Rails controller, objects are automatically decorated # Example decorator: class UserDecorator < ActiveDecorator::Base def full_name "#{first_name} #{last_name}" end end
Debug
Known footguns

No known footguns recorded.

Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
18 hits · last 30 days
gptbot
3
amazonbot
3
claudebot
3
mj12bot
1
ahrefsbot
1
Resources