Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 5536

Show
Ignore:
Timestamp:
11/16/06 06:40:37 (2 years ago)
Author:
bitsweat
Message:

Deprecate standalone components.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r5525 r5536  
    11*SVN* 
     2 
     3* Deprecate standalone components.  [Jeremy Kemper] 
    24 
    35* assert_select_rjs :remove.  [Dylan Egan] 
  • trunk/actionpack/lib/action_controller/components.rb

    r5207 r5536  
    8181        self.template_root = path_of_controller_root 
    8282      end 
     83 
     84      deprecate :uses_component_template_root => 'Components are deprecated and will be removed in Rails 2.0.' 
    8385    end 
    8486 
  • trunk/actionpack/test/controller/components_test.rb

    r4715 r5536  
    144144class UsesComponentTemplateRootTest < Test::Unit::TestCase 
    145145  def test_uses_component_template_root 
    146     assert_equal './test/fixtures/', A::B::C::NestedController.uses_component_template_root 
     146    assert_deprecated 'uses_component_template_root' do 
     147      assert_equal './test/fixtures/', A::B::C::NestedController.uses_component_template_root 
     148    end 
    147149  end 
    148150end