Module: CallbackRequestBootstrap::RequestsHelper
- Defined in:
- app/helpers/callback_request_bootstrap/requests_helper.rb
Instance Method Summary collapse
Instance Method Details
#link_to_callback_modal(title, options = nil, html_options = nil) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/helpers/callback_request_bootstrap/requests_helper.rb', line 4 def link_to_callback_modal(title, = nil, = nil) ||= {} [:class] ||= [] if [:class].is_a? Array [:class] << 'callback_link' # append as element to array else [:class] << ' callback_link' # append with leading space to string end #link_to title, '#', opts.merge(html_options) link_to title, , end |