Registry / web-framework / draper

draper

JSON →
library4.0.6rbrubygemsunverified

Adds an object-oriented layer of presentation logic to your Rails apps.

gem install draper
INSTALL
IMPORT
SIG · DRAPER
D
draper
web-frameworkrubyv4.0.6
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.

Draper
✓ require 'draper'

Define a decorator for a model

require 'draper' class ProductDecorator < Draper::Decorator def formatted_price "$#{object.price}" end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.0.6latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
draper — gem install draper · libregistry