method
determine_default_controller_class
v2.2.1 -
Show latest stable
- Class:
ActionController::TestCase
determine_default_controller_class(name)public
No documentation available.
# File actionpack/lib/action_controller/test_case.rb, line 122
def determine_default_controller_class(name)
name.sub(/Test$/, '').constantize
rescue NameError
raise NonInferrableControllerError.new(name)
end