Skip to content
Browse files

Indicate that ActionController::Base.resource_action_separator is dep…

…recated and only has an effect with the deprecated router DSL.
  • Loading branch information...
1 parent 18bcce5 commit 902d5a4f05c879674a3d010ac8ca76902308e18e Carl Lerche committed
Showing with 9 additions and 2 deletions.
  1. +9 −2 actionpack/lib/action_controller/metal/compatibility.rb
View
11 actionpack/lib/action_controller/metal/compatibility.rb
@@ -32,8 +32,15 @@ class << self
@_response)
# Controls the resource action separator
- cattr_accessor :resource_action_separator
- self.resource_action_separator = "/"
+ def self.resource_action_separator
+ @resource_action_separator ||= "/"
+ end
+
+ def self.resource_action_separator=(val)
+ ActiveSupport::Deprecation.warn "ActionController::Base.resource_action_separator is deprecated and only " \
+ "works with the deprecated router DSL."
+ @resource_action_separator = val
+ end
def self.use_accept_header
ActiveSupport::Deprecation.warn "ActionController::Base.use_accept_header doesn't do anything anymore. " \

0 comments on commit 902d5a4

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