提交 ea4f8ef3 编写于 作者: J Justin Ko 提交者: Jeremy Kemper

Reinstate dom_id in controllers.

[#3040 state:committed]
Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
上级 9444ac93
......@@ -29,6 +29,7 @@ class Base < Metal
include ActionController::Verification
include ActionController::RequestForgeryProtection
include ActionController::Streaming
include ActionController::RecordIdentifier
include ActionController::HttpAuthentication::Basic::ControllerMethods
include ActionController::HttpAuthentication::Digest::ControllerMethods
......
......@@ -76,6 +76,9 @@ def url_options
end
end
class RecordIdentifierController < ActionController::Base
end
class ControllerClassTests < ActiveSupport::TestCase
def test_controller_path
assert_equal 'empty', EmptyController.controller_path
......@@ -102,6 +105,11 @@ def test_filter_parameter_logging
assert_equal [:password], parameters
end
def test_record_identifier
assert_respond_to RecordIdentifierController.new, :dom_id
assert_respond_to RecordIdentifierController.new, :dom_class
end
end
class ControllerInstanceTests < Test::Unit::TestCase
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册