module ActiveAdmin::FormBuilder::DeprecatedMethods
def buttons(*args, &block)
def buttons(*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
def commit_button(*args)
def commit_button(*args) ::ActiveSupport::Deprecation.warn("f.commit_button is deprecated in favour of f.action(:submit)") options = args.extract_options! if String === args.first options[:label] = args.first unless options.has_key?(:label) end action(:submit, options) end
def commit_button_with_cancel_link
def commit_button_with_cancel_link # 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