Skip to content
Browse files

Reinstate dom_id in controllers.

[#3040 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
1 parent 9444ac9 commit ea4f8ef33f08a69a68f6b95f392e63ea9cc13602 @justinko justinko committed with jeremy Mar 9, 2010
Showing with 9 additions and 0 deletions.
  1. +1 −0 actionpack/lib/action_controller/base.rb
  2. +8 −0 actionpack/test/controller/base_test.rb
View
1 actionpack/lib/action_controller/base.rb
@@ -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
View
8 actionpack/test/controller/base_test.rb
@@ -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

0 comments on commit ea4f8ef

Please sign in to comment.
Something went wrong with that request. Please try again.