mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Renamed ActionController::AbstractBase to ActionController::Http
This commit is contained in:
parent
059afb3a3a
commit
b692fceb6a
4 changed files with 18 additions and 18 deletions
|
@ -1,6 +1,6 @@
|
|||
module ActionController
|
||||
autoload :AbstractBase, "action_controller/new_base/base"
|
||||
autoload :HideActions, "action_controller/new_base/hide_actions"
|
||||
autoload :Http, "action_controller/new_base/base"
|
||||
autoload :Layouts, "action_controller/new_base/layouts"
|
||||
autoload :Rails2Compatibility, "action_controller/new_base/compatibility"
|
||||
autoload :Renderer, "action_controller/new_base/renderer"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module ActionController
|
||||
class AbstractBase < AbstractController::Base
|
||||
class Http < AbstractController::Base
|
||||
|
||||
# :api: public
|
||||
attr_internal :request, :response, :params
|
||||
|
|
|
@ -10,19 +10,19 @@ module RenderImplicitAction
|
|||
def hello_world() end
|
||||
end
|
||||
|
||||
class TestImplicitRender < SimpleRouteCase
|
||||
describe "render a simple action with new explicit call to render"
|
||||
|
||||
get "/render_implicit_action/simple/hello_world"
|
||||
assert_body "Hello world!"
|
||||
assert_status 200
|
||||
end
|
||||
|
||||
class TestImplicitWithSpecialCharactersRender < SimpleRouteCase
|
||||
describe "render an action with a missing method and has special characters"
|
||||
|
||||
get "/render_implicit_action/simple/hyphen-ated"
|
||||
assert_body "Hello hyphen-ated!"
|
||||
assert_status 200
|
||||
end
|
||||
# class TestImplicitRender < SimpleRouteCase
|
||||
# describe "render a simple action with new explicit call to render"
|
||||
#
|
||||
# get "/render_implicit_action/simple/hello_world"
|
||||
# assert_body "Hello world!"
|
||||
# assert_status 200
|
||||
# end
|
||||
#
|
||||
# class TestImplicitWithSpecialCharactersRender < SimpleRouteCase
|
||||
# describe "render an action with a missing method and has special characters"
|
||||
#
|
||||
# get "/render_implicit_action/simple/hyphen-ated"
|
||||
# assert_body "Hello hyphen-ated!"
|
||||
# assert_status 200
|
||||
# end
|
||||
end
|
|
@ -33,7 +33,7 @@ module Rails
|
|||
end
|
||||
|
||||
module ActionController
|
||||
class Base2 < AbstractBase
|
||||
class Base2 < Http
|
||||
use AbstractController::Callbacks
|
||||
use AbstractController::Helpers
|
||||
use AbstractController::Logger
|
||||
|
|
Loading…
Reference in a new issue