Module: ActionController::RecordIdentifier
- Defined in:
- lib/action_controller/record_identifier.rb
Constant Summary collapse
- MODULE_MESSAGE =
'Calling ActionController::RecordIdentifier.%s is deprecated and ' \ 'will be removed in Rails 4.1, please call using ActionView::RecordIdentifier instead.'
- INSTANCE_MESSAGE =
'%s method will no longer be included by default in controllers ' \ 'since Rails 4.1. If you would like to use it in controllers, please include ' \ 'ActionView::RecordIdentifier module.'
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.dom_class(record, prefix = nil) ⇒ Object
26 27 28 29 |
# File 'lib/action_controller/record_identifier.rb', line 26 def self.dom_class(record, prefix = nil) ActiveSupport::Deprecation.warn(MODULE_MESSAGE % 'dom_class') ActionView::RecordIdentifier.dom_class(record, prefix) end |
.dom_id(record, prefix = nil) ⇒ Object
21 22 23 24 |
# File 'lib/action_controller/record_identifier.rb', line 21 def self.dom_id(record, prefix = nil) ActiveSupport::Deprecation.warn(MODULE_MESSAGE % 'dom_id') ActionView::RecordIdentifier.dom_id(record, prefix) end |
Instance Method Details
#dom_class(record, prefix = nil) ⇒ Object
16 17 18 19 |
# File 'lib/action_controller/record_identifier.rb', line 16 def dom_class(record, prefix = nil) ActiveSupport::Deprecation.warn(INSTANCE_MESSAGE % 'dom_class') ActionView::RecordIdentifier.dom_class(record, prefix) end |
#dom_id(record, prefix = nil) ⇒ Object
11 12 13 14 |
# File 'lib/action_controller/record_identifier.rb', line 11 def dom_id(record, prefix = nil) ActiveSupport::Deprecation.warn(INSTANCE_MESSAGE % 'dom_id') ActionView::RecordIdentifier.dom_id(record, prefix) end |