Deprecate ActionController::RecordIdentifier

This commit is contained in:
Piotr Sarnacki 2012-08-11 16:52:12 +02:00
parent 8ca17926dc
commit 4efad291c1
2 changed files with 12 additions and 0 deletions

@ -46,6 +46,10 @@ module ActionController
autoload :TestCase, 'action_controller/test_case'
autoload :TemplateAssertions, 'action_controller/test_case'
eager_autoload do
autoload :RecordIdentifier
end
def self.eager_load!
super
ActionController::Caching.eager_load!

@ -0,0 +1,8 @@
require 'active_support/deprecation'
require 'action_view/record_identifier'
module ActionController
RecordIdentifier = ActionView::RecordIdentifier
ActiveSupport::Deprecation.warn "ActionController::RecordIdentifier was renamed to ActionView::RecordIdentifier. " +
"Please use it instead. ActionController::RecordIdentifier will be removed in Rails 4.1"
end