Module: Cms::FormBuilder::DeprecatedInputs
- Included in:
- ContentBlockFormBuilder
- Defined in:
- lib/cms/form_builder/deprecated_inputs.rb
Overview
These FormBuilder inputs are deprecated as of BrowserCMS v4.0 and will be remove in 4.1.
Instance Method Summary collapse
- #cms_drop_down(method, collection, options = {}) ⇒ Object
- #cms_file_field(method, options = {}) ⇒ Object
- #cms_text_editor(method, options = {}) ⇒ Object
-
#cms_text_field(method, options = {}) ⇒ Object
deprecated
Deprecated.
Use <%= f.input :attribute_name %> instead.
- #template_editor(method, options = {}) ⇒ Object
Instance Method Details
#cms_drop_down(method, collection, options = {}) ⇒ Object
27 28 29 30 |
# File 'lib/cms/form_builder/deprecated_inputs.rb', line 27 def cms_drop_down(method, collection, ={}) method_deprecated_use_instead(:cms_drop_down, "<%= f.association :association_name %>") input method, .merge(collection: collection) end |
#cms_file_field(method, options = {}) ⇒ Object
22 23 24 25 |
# File 'lib/cms/form_builder/deprecated_inputs.rb', line 22 def cms_file_field(method, ={}) method_deprecated_use_instead(:cms_file_field, "<%= f.input :#{method}, as: :file_picker %>") input method, .merge(as: :file_picker) end |
#cms_text_editor(method, options = {}) ⇒ Object
12 13 14 15 |
# File 'lib/cms/form_builder/deprecated_inputs.rb', line 12 def cms_text_editor(method, ={}) method_deprecated_use_instead(:cms_text_editor, "<%= f.input :#{method}, as: :text_editor %>") input method, .merge(as: :text_editor) end |
#cms_text_field(method, options = {}) ⇒ Object
Deprecated.
Use <%= f.input :attribute_name %> instead.
7 8 9 10 |
# File 'lib/cms/form_builder/deprecated_inputs.rb', line 7 def cms_text_field(method, ={}) method_deprecated_use_instead(:cms_text_field, "<%= f.input :#{method} %>") input method, end |
#template_editor(method, options = {}) ⇒ Object
17 18 19 20 |
# File 'lib/cms/form_builder/deprecated_inputs.rb', line 17 def template_editor(method, ={}) method_deprecated_use_instead(:template_editor, "<%= f.input :#{method}, as: :template_editor %>") input method, .merge(as: :template_editor) end |