This website requires JavaScript.
Explore
Help
Sign In
kotovalexarian-likes-github
/
draper
mirror of
https://github.com/drapergem/draper
Watch
1
Star
0
Fork
You've already forked draper
0
Code
Releases
Activity
d154059572
draper
/
spec
/
support
/
samples
/
product_decorator.rb
8 lines
110 B
Ruby
Raw
Normal View
History
Unescape
Escape
Added the ability to automatically do lookups by passing an integer ID to .new
2011-07-23 15:39:48 +00:00
class
ProductDecorator
<
Draper
::
Base
decorates
:product
Ability to pass block to decorator method
2011-09-16 18:42:33 +00:00
def
awesome_title
"
Awesome Title
"
end
Added the ability to automatically do lookups by passing an integer ID to .new
2011-07-23 15:39:48 +00:00
end