Registry / web-framework / active-decorator

active-decorator

JSON →
library1.5.1rbrubygemsunverified

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

gem install active_decorator
INSTALL
IMPORT
SIG · ACTIVE-DECORATOR
A
active-decorator
web-frameworkrubyv1.5.1
harness data pending
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.

ActiveDecorator
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 issues

No known issues recorded.

Upgrade
Version history
1.5.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
45 hits · last 30 days
node
36
Meta
1
OpenAI (training)
1
Resources
active-decorator — gem install active-decorator · libregistry