Class: EndView::Form::RecordBuilder
- Inherits:
-
Builder
- Object
- Builder
- EndView::Form::RecordBuilder
show all
- Defined in:
- lib/end_view/form/record_builder.rb
Instance Method Summary
collapse
Methods inherited from Builder
#auth_token_opts, #form_method_opts, #label_opts
Instance Method Details
18
19
20
|
# File 'lib/end_view/form/record_builder.rb', line 18
def form_opts(opts = {})
super.merge(class: form_class, id: form_id).merge(opts)
end
|
22
23
24
|
# File 'lib/end_view/form/record_builder.rb', line 22
def input_opts(attribute, opts = {})
super.merge(value: attribute_value(attribute)).merge(opts)
end
|