Sha256: 3e026be305dcf197ee923ff2b836e26a3d1fadb3abdeae363e547368a788cd85
Contents?: true
Size: 444 Bytes
Versions: 7
Compression:
Stored size: 444 Bytes
Contents
module BMC::FormBackUrl def back_url_tag tag.input( :type => "hidden", :name => "back_url", :value => (params[:back_url].presence || request.referer), ) end def form_tag_with_body(html_options, content) output = form_tag_html(html_options) output.safe_concat(back_url_tag) output << content output.safe_concat("</form>") end end ActionView::Helpers::FormTagHelper.prepend(BMC::FormBackUrl)
Version data entries
7 entries across 7 versions & 1 rubygems