以下代码来自Ruby on Rails.
...some code here...
unless ActionController::Base < ActionController::Testing
ActionController::Base.class_eval do
include ActionController::Testing
end
end
... some code here...
Run Code Online (Sandbox Code Playgroud)
ActionController::Base < ActionController::Testing在这种情况下意味着什么?
ruby ×1