Class: EndView::Bootstrap::FormModal

Inherits:
Modal
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/end_view/bootstrap/form_modal.rb

Instance Method Summary collapse

Methods inherited from Modal

render

Constructor Details

#initialize(form_builder, opts = {}) ⇒ FormModal

Returns a new instance of FormModal.



10
11
12
13
14
# File 'lib/end_view/bootstrap/form_modal.rb', line 10

def initialize(form_builder, opts = {})
  super({ dismiss_value: 'Cancel' }.merge(opts))
  @form_builder = form_builder
  @submit_value = opts[:submit_value] || 'Okay'
end