Sha256: 1260a5d5ae11b4ab80175e086b336dfacb74684b425ba80cc9caee21877a8154
Contents?: true
Size: 780 Bytes
Versions: 2
Compression:
Stored size: 780 Bytes
Contents
module Attachy module ViewHelper def attachy(method, object, options, block) viewer = Viewer.new(method, object, options, self) return block.call(viewer) if block viewer.field end def attachy_content(method, object, options) Viewer.new(method, object, options, self).content end def attachy_file_field(method, object, options) Viewer.new(method, object, options, self).file_field end def attachy_image(method, object, options) Viewer.new(method, object, options, self).image end def attachy_link(method, object, options) Viewer.new(method, object, options, self).link end def attachy_node(method, object, options) Viewer.new(method, object, options, self).node end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
attachy-0.1.1 | lib/attachy/helpers/attachy/view_helper.rb |
attachy-0.1.0 | lib/attachy/helpers/attachy/view_helper.rb |