Sha256: 6ea10f071c21551a368dd1790da574c4966034cc30016b3c378b6290a9f369ac
Contents?: true
Size: 426 Bytes
Versions: 3
Compression:
Stored size: 426 Bytes
Contents
class DecoratorWithApplicationHelper < Draper::Base def uses_hello_world h.hello_world end def sample_content h.content_tag :span, "Hello, World!" end def sample_link h.link_to "Hello", "/World" end def sample_truncate h.truncate("Once upon a time", :length => 7) end def length "overridden" end def sample_html_escaped_text h.html_escape '<script>danger</script>' end end
Version data entries
3 entries across 3 versions & 1 rubygems