Module: ActiveAdmin::FormBuilder::DeprecatedMethods
- Included in:
- ActiveAdmin::FormBuilder
- Defined in:
- lib/active_admin/form_builder.rb
Overview
These methods are deprecated and removed from Formtastic, however are supported here to help with transition.
Instance Method Summary collapse
-
#buttons(*args, &block) ⇒ Object
The buttons method always needs to be wrapped in a new buffer.
-
#commit_button(*args) ⇒ Object
Formtastic has depreciated #commit_button in favor of #action(:submit).
- #commit_button_with_cancel_link ⇒ Object
Instance Method Details
#buttons(*args, &block) ⇒ Object
The buttons method always needs to be wrapped in a new buffer
117 118 119 120 121 122 |
# File 'lib/active_admin/form_builder.rb', line 117 def (*args, &block) # Formtastic has depreciated #buttons in favor of #actions ::ActiveSupport::Deprecation.warn("f.buttons is deprecated in favour of f.actions") actions args, &block end |
#commit_button(*args) ⇒ Object
Formtastic has depreciated #commit_button in favor of #action(:submit)
98 99 100 101 102 103 104 105 106 107 |
# File 'lib/active_admin/form_builder.rb', line 98 def (*args) ::ActiveSupport::Deprecation.warn("f.commit_button is deprecated in favour of f.action(:submit)") = args. if String === args.first [:label] = args.first unless .has_key?(:label) end action(:submit, ) end |
#commit_button_with_cancel_link ⇒ Object
109 110 111 112 113 114 |
# File 'lib/active_admin/form_builder.rb', line 109 def # Formtastic has depreciated #buttons in favor of #actions ::ActiveSupport::Deprecation.warn("f.commit_button_with_cancel_link is deprecated in favour of f.commit_action_with_cancel_link") commit_action_with_cancel_link end |