Method: ModelModalHelper#model_modal_content
- Defined in:
- app/helpers/model_modal_helper.rb
#model_modal_content(model, options = {}) ⇒ Object
88 89 90 91 92 93 94 95 96 97 98 |
# File 'app/helpers/model_modal_helper.rb', line 88 def model_modal_content(model, = {}) content_tag(:div, class: 'modal-content') do concat(content_tag(:h2) { model.name }) concat(content_tag(:div, class: 'row') do concat(model_modal_tabs(model, )) concat(model_modal_fields_tab(model, )) concat(model_modal_standard_tab(model, )) concat(model_modal_logs_tab(model, )) if model.respond_to?(:logs) end) end end |