method

require_local!

rails latest stable - Class: Rails::InfoController

Method deprecated or moved

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

require_local!()
protected

No documentation available.

# File railties/lib/rails/info_controller.rb, line 24
  def require_local!
    unless local_request?
      render text: '<p>For security purposes, this information is only available to local requests.</p>', status: :forbidden
    end
  end