This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
recognition_conditions()
private
Plugins may override this method to add other conditions, like checks on
host, subdomain, and so forth. Note that changes here only affect route
recognition, not generation.
# File actionpack/lib/action_controller/routing/route.rb, line 212
def recognition_conditions
result = ["(match = #{Regexp.new(recognition_pattern).inspect}.match(path))"]
result << "[conditions[:method]].flatten.include?(env[:method])" if conditions[:method]
result
end