mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Deprecate ActionController::RecordIdentifier
This commit is contained in:
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!
|
||||
|
|
8
actionpack/lib/action_controller/record_identifier.rb
Normal file
8
actionpack/lib/action_controller/record_identifier.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue