lib/formtastic/inputs/base.rb in formtastic-2.3.1 vs lib/formtastic/inputs/base.rb in formtastic-3.0.0.rc
- old
+ new
@@ -9,17 +9,10 @@
@template = template
@object = object
@object_name = object_name
@method = method
@options = options.dup
-
- warn_deprecated_option!(:value, ":input_html => { :value => '...'}")
- warn_deprecated_option!(:hint_class, "default_hint_class configuration")
- warn_deprecated_option!(:error_class, "default_error_class configuration")
- warn_deprecated_option!(:group_by, ":collection option with a HTML string generated by Rails' grouped_options_for_select()")
- warn_deprecated_option!(:group_label, ":collection option with a HTML string generated by Rails' grouped_options_for_select()")
- warn_deprecated_option!(:find_options, "YourModel.find(...)")
end
# Usefull for deprecating options.
def warn_and_correct_option!(old_option_name, new_option_name)
if options.key?(old_option_name)
@@ -47,11 +40,10 @@
autoload :Collections
autoload :Choices
autoload :Database
autoload :Errors
autoload :Fileish
- autoload :GroupedCollections
autoload :Hints
autoload :Html
autoload :Labelling
autoload :Naming
autoload :Numeric
@@ -75,6 +67,6 @@
include Wrapping
end
end
end
-
\ No newline at end of file
+