Method: Hooch::HoochHelper#click_proxy

Defined in:
lib/hooch/hooch_helper.rb

#click_proxy(target = nil) ⇒ Object



107
108
109
110
111
112
# File 'lib/hooch/hooch_helper.rb', line 107

def click_proxy(target = nil)
  ''.tap do |attrs|
    attrs.concat "data-click-proxy=true"
    attrs.concat " data-target=#{target}" if target.present?
  end
end