Module: Bullseye::Helpers::BullseyeHelper

Defined in:
lib/bullseye/helpers/bullseye_helper.rb

Instance Method Summary collapse

Instance Method Details

#bullseye_body(options = {}, &block) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/bullseye/helpers/bullseye_helper.rb', line 4

def bullseye_body(options = {}, &block)
  attributes = Bullseye.config.html_tag.collect do |key, value|
    [ key, value.gsub(':action', __bullseye_action).gsub(':controller', __bullseye_controller) ]
  end

  (:body, capture(&block), Hash[attributes].merge(options)).html_safe
end