Sha256: c8fbc4a398be5b8db33e51aaef5f74bd41f07323a40236b1d6be5a5edcd2f211
Contents?: true
Size: 805 Bytes
Versions: 1
Compression:
Stored size: 805 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
attachy-0.1.2 | lib/attachy/helpers/attachy/view_helper.rb |