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
26a18c8cc9
draper
/
lib
/
draper
/
helper_support.rb
6 lines
112 B
Ruby
Raw
Normal View
History
Unescape
Escape
Implementing application-wide 'decorate' view helper
2011-10-29 02:24:55 +00:00
module
Draper::HelperSupport
def
decorate
(
input
,
&
block
)
capture
{
block
.
call
(
input
.
decorate
)
}
end
add new lines :sweat:
2012-04-25 20:12:30 +00:00
end