Permalink
Browse files

Deprecate standalone components.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5536 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 072985b commit 0100a79913af60abd15351efd4a495dec0ff0474 @jeremy jeremy committed Nov 16, 2006
@@ -1,5 +1,7 @@
*SVN*
+* Deprecate standalone components. [Jeremy Kemper]
+
* assert_select_rjs :remove. [Dylan Egan]
* Always clear model associations from session. #4795 [sd@notso.net, andylien@gmail.com]
@@ -80,6 +80,8 @@ def uses_component_template_root
self.template_root = path_of_controller_root
end
+
+ deprecate :uses_component_template_root => 'Components are deprecated and will be removed in Rails 2.0.'
end
module InstanceMethods
@@ -143,6 +143,8 @@ def self.caller
class UsesComponentTemplateRootTest < Test::Unit::TestCase
def test_uses_component_template_root
- assert_equal './test/fixtures/', A::B::C::NestedController.uses_component_template_root
+ assert_deprecated 'uses_component_template_root' do
+ assert_equal './test/fixtures/', A::B::C::NestedController.uses_component_template_root
+ end
end
end

0 comments on commit 0100a79

Please sign in to comment.