1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Deprecate standalone components.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5536 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2006-11-16 06:40:37 +00:00
parent 072985bc28
commit 0100a79913
3 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,7 @@
*SVN* *SVN*
* Deprecate standalone components. [Jeremy Kemper]
* assert_select_rjs :remove. [Dylan Egan] * assert_select_rjs :remove. [Dylan Egan]
* Always clear model associations from session. #4795 [sd@notso.net, andylien@gmail.com] * Always clear model associations from session. #4795 [sd@notso.net, andylien@gmail.com]

View file

@ -80,6 +80,8 @@ module ActionController #:nodoc:
self.template_root = path_of_controller_root self.template_root = path_of_controller_root
end end
deprecate :uses_component_template_root => 'Components are deprecated and will be removed in Rails 2.0.'
end end
module InstanceMethods module InstanceMethods

View file

@ -143,6 +143,8 @@ end
class UsesComponentTemplateRootTest < Test::Unit::TestCase class UsesComponentTemplateRootTest < Test::Unit::TestCase
def test_uses_component_template_root def test_uses_component_template_root
assert_deprecated 'uses_component_template_root' do
assert_equal './test/fixtures/', A::B::C::NestedController.uses_component_template_root assert_equal './test/fixtures/', A::B::C::NestedController.uses_component_template_root
end end
end end
end