method

public_or_deprecated_send

rails latest stable - Class: ActionView::Helpers::FormOptionsHelper

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

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