module Attachy::ViewHelper

Public Instance Methods

attachy(method, object, options, block) click to toggle source
# File lib/attachy/helpers/attachy/view_helper.rb, line 5
def attachy(method, object, options, block)
  viewer = Viewer.new(method, object, options, self)

  return block.call(viewer) if block

  viewer.field
end
attachy_content(method, object, options = {}) click to toggle source
# File lib/attachy/helpers/attachy/view_helper.rb, line 13
def attachy_content(method, object, options = {})
  Viewer.new(method, object, options, self).content
end
attachy_file_field(method, object, options = {}) click to toggle source
# File lib/attachy/helpers/attachy/view_helper.rb, line 17
def attachy_file_field(method, object, options = {})
  Viewer.new(method, object, options, self).file_field
end
attachy_image(method, object, options = {}) click to toggle source
# File lib/attachy/helpers/attachy/view_helper.rb, line 21
def attachy_image(method, object, options = {})
  Viewer.new(method, object, options, self).image
end
attachy_node(method, object, options = {}) click to toggle source
# File lib/attachy/helpers/attachy/view_helper.rb, line 29
def attachy_node(method, object, options = {})
  Viewer.new(method, object, options, self).node
end