method
public_or_deprecated_send
rails latest stable - Class:
ActionView::Helpers::FormOptionsHelper
public_or_deprecated_send(item, value)private
No documentation available.
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 809
def public_or_deprecated_send(item, value)
item.public_send(value)
rescue NoMethodError
raise unless item.respond_to?(value, true) && !item.respond_to?(value)
ActiveSupport::Deprecation.warn "Using private methods from view helpers is deprecated (calling private #{item.class}##{value})"
item.send(value)
end