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
bfc33537b9
draper
/
spec
/
support
/
samples
/
product_decorator.rb
8 lines
115 B
Ruby
Raw
Normal View
History
Unescape
Escape
Rename Base to Decorator
2012-10-09 08:51:40 +00:00
class
ProductDecorator
<
Draper
::
Decorator
Added the ability to automatically do lookups by passing an integer ID to .new
2011-07-23 15:39:48 +00:00
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