Sha256: 7f097965c0c9fbf3fabfcbc2da2093e8f9da2d8209b75d758adfef37853c4627
Contents?: true
Size: 548 Bytes
Versions: 3
Compression:
Stored size: 548 Bytes
Contents
module CallbackRequestBootstrap module RequestsHelper def link_to_callback_modal(title, options = nil, html_options = nil) html_options ||= {} html_options[:class] ||= [] if html_options[:class].is_a? Array html_options[:class] << 'callback_link' # append as element to array else html_options[:class] << ' callback_link' # append with leading space to string end #link_to title, '#', opts.merge(html_options) link_to title, options, html_options end end end
Version data entries
3 entries across 3 versions & 1 rubygems