lib/bootstrap/view_helpers/components/modal/header.rb in bootstrap-view_helpers-0.0.2 vs lib/bootstrap/view_helpers/components/modal/header.rb in bootstrap-view_helpers-0.0.3
- old
+ new
@@ -2,10 +2,10 @@
module ViewHelpers
module Components
class Modal < Component
class Header < Component
def to_html
- content_tag(:div, class: 'modal-header') do
+ content_tag(:div, class: options[:class]) do
concat(block.call(self)) if block.present?
concat title if block.blank?
concat close_button if dismiss
end
end