Remove the deprecated :remote_form_for in favor of the :remote => true option
This commit is contained in:
parent
a484b560d1
commit
3a4fe9ca30
|
@ -1,6 +1,9 @@
|
|||
* enhancements
|
||||
* Add :autofocus HTML5 attribute support (by github.com/jpzwarte)
|
||||
|
||||
* deprecation
|
||||
* removed the deprecated :remote_form_for
|
||||
|
||||
* bug fix
|
||||
* Only add the "required" HTML 5 attribute for valid inputs, disable in selects (not allowed)
|
||||
* Fix error when using hints without an attribute (by github.com/butsjoh and github.com/rafaelfranca)
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
module SimpleForm
|
||||
module ActionViewExtensions
|
||||
# This modules create simple form wrappers around default form_for,
|
||||
# fields_for and remote_form_for.
|
||||
# This module creates simple form wrappers around default form_for and fields_for.
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
|
@ -30,7 +29,7 @@ module SimpleForm
|
|||
result
|
||||
end
|
||||
|
||||
[:form_for, :fields_for, :remote_form_for].each do |helper|
|
||||
[:form_for, :fields_for].each do |helper|
|
||||
class_eval <<-METHOD, __FILE__, __LINE__
|
||||
def simple_#{helper}(record_or_name_or_array, *args, &block)
|
||||
options = args.extract_options!
|
||||
|
|
Loading…
Reference in New Issue