lib/formtastic/helpers/input_helper.rb in formtastic-2.0.2 vs lib/formtastic/helpers/input_helper.rb in formtastic-2.1.0.beta1
- old
+ new
@@ -138,19 +138,13 @@
# Override collection of objects in the association (`:select`, `:radio` & `:check_boxes` inputs only)
#
# @option options :member_label [Symbol, Proc, Method]
# Override the method called on each object in the `:collection` for use as the `<label>` content (`:check_boxes` & `:radio` inputs) or `<option>` content (`:select` inputs)
#
- # @option options :label_method [Symbol, Proc, Method]
- # Deprecated, renamed to :member_label
- #
# @option options :member_value [Symbol, Proc, Method]
# Override the method called on each object in the `:collection` for use as the `value` attribute in the `<input>` (`:check_boxes` & `:radio` inputs) or `<option>` (`:select` inputs)
#
- # @option options :value_method [Symbol, Proc, Method]
- # Deprecated, renamed to :member_value
- #
# @option options :hint_class [String]
# Override the `class` attribute applied to the `<p>` tag used when a `:hint` is rendered for an input
#
# @option options :error_class [String]
# Override the `class` attribute applied to the `<p>` or `<ol>` tag used when inline errors are rendered for an input
@@ -162,23 +156,20 @@
# TODO will probably be deprecated
#
# @option options :find_options [Symbol]
# TODO will probably be deprecated
#
- # @option options :group_label_method [Symbol]
- # Deprecated, use `:group_label`
- #
# @option options :group_label [Symbol]
# TODO will probably be deprecated
#
# @option options :include_blank [Boolean]
# Specify if a `:select` input should include a blank option or not (defaults to `include_blank_for_select_by_default` configuration)
#
# @option options :prompt [String]
# Specify the text in the first ('blank') `:select` input `<option>` to prompt a user to make a selection (implicitly sets `:include_blank` to `true`)
#
# @todo Can we kill `:hint_class` & `:error_class`? What's the use case for input-by-input? Shift to config or burn!
- # @todo Can we kill `:group_by` & `:group_label`/`:group_label_method`? Should be done with :collection => grouped_options_for_select(...)
+ # @todo Can we kill `:group_by` & `:group_label`? Should be done with :collection => grouped_options_for_select(...)
# @todo Can we kill `:find_options`? Should be done with MyModel.some_scope.where(...).order(...).whatever_scope
# @todo Can we kill `:label`, `:hint` & `:prompt`? All strings could be shifted to i18n!
#
# @example Accept all default options
# <%= f.input :title %>