From be968ecd8b93f128a01427f76c888c291cbc239b Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Wed, 13 Jan 2010 20:21:04 -0600 Subject: Respect resources_path_names and :path_names options in new dsl --- actionpack/lib/action_controller/metal/compatibility.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'actionpack/lib/action_controller/metal') diff --git a/actionpack/lib/action_controller/metal/compatibility.rb b/actionpack/lib/action_controller/metal/compatibility.rb index 3d50e79a23..7180c0ceda 100644 --- a/actionpack/lib/action_controller/metal/compatibility.rb +++ b/actionpack/lib/action_controller/metal/compatibility.rb @@ -21,6 +21,8 @@ module ActionController class << self delegate :default_charset=, :to => "ActionDispatch::Response" + delegate :resources_path_names, :to => "ActionController::Routing::Routes" + delegate :resources_path_names=, :to => "ActionController::Routing::Routes" end # cattr_reader :protected_instance_variables @@ -31,9 +33,6 @@ module ActionController @before_filter_chain_aborted @_headers @_params @_flash @_response) - cattr_accessor :resources_path_names - self.resources_path_names = { :new => 'new', :edit => 'edit' } - # Controls the resource action separator cattr_accessor :resource_action_separator self.resource_action_separator = "/" -- cgit v1.2.3