method
assign_deprecated_shortcuts

v1.2.6 - Show latest stable - 0 notes - Class: ActionController::Base
- 1.0.0
- 1.1.6
- 1.2.6 (0)
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.8
- 3.0.0
- 3.0.9
- 3.1.0
- 3.2.1
- 3.2.8
- 3.2.13
- 4.0.2
- 4.1.8
- 4.2.1
- 4.2.7
- 4.2.9
- 5.0.0.1
- 5.1.7
- 5.2.3
- 6.0.0
- 6.1.3.1
- 6.1.7.7
- 7.0.0
- 7.1.3.2
- 7.1.3.4
- What's this?
Related methods
- Class methods (23)
-
action_methods
-
append_view_path (>= v2.0.3)
-
call (>= v2.3.8)
-
controller_class_name
-
controller_name
-
controller_path
-
exempt_from_layout
-
filter_parameter_logging
-
hidden_actions
-
hide_action
-
inherited (>= v3.0.0)
-
make_response! (>= v5.1.7)
-
prepend_view_path (>= v2.0.3)
-
process (>= v2.1.0)
-
process_cgi
-
process_test
-
protected_instance_variables (>= v4.1.8)
-
uses_component_template_root (<= v1.0.0)
-
view_class
-
view_paths (>= v2.0.3)
-
view_paths= (>= v2.0.3)
-
view_root
-
without_modules (>= v3.0.0)
- Instance methods (80)
-
action_methods
-
add_class_variables_to_assigns
-
add_instance_variables_to_a...
-
add_variables_to_assigns
-
append_view_path (>= v2.0.3)
-
assert_existance_of_templat...
(<= v1.0.0)
-
assert_existence_of_templat...
-
assign_default_content_type...
-
assign_deprecated_shortcuts
-
assign_names
-
assign_shortcuts
-
close_session
-
complete_request_uri
-
controller_class_name
-
controller_name
-
controller_path
-
default_render
(>= v2.1.0)
-
default_template
(>= v2.3.8)
-
default_template_name
-
default_url_options
-
erase_redirect_results
(>= v1.0.0)
-
erase_render_results
(>= v1.0.0)
-
erase_results
(>= v1.0.0)
-
expires_in
-
expires_now
-
forget_variables_added_to_a...
-
fresh_when
(>= v2.2.1)
-
head
-
initialize_current_url
-
initialize_template_class
-
log_processing
-
log_processing_for_parameters
(>= v2.2.1)
-
log_processing_for_request_id
(>= v2.2.1)
-
log_processing_for_session_id
(>= v2.2.1)
-
perform_action
-
performed?
-
prepend_view_path (>= v2.0.3)
-
process (>= v1.0.0)
-
process_cgi (>= v2.1.0)
-
process_cleanup
-
process_test (>= v2.1.0)
-
process_with_test
-
protected_instance_variables
-
_protected_ivars (>= v4.1.8)
-
redirect_to
-
redirect_to_full_url
(>= v2.2.1)
-
redirect_to_path
(<= v1.0.0)
-
redirect_to_url
(<= v1.0.0)
-
render
-
render_action
(<= v1.0.0)
-
render_file
(<= v1.0.0)
-
render_for_file
(>= v2.1.0)
-
render_for_text
(>= v2.1.0)
-
render_nothing
(<= v1.0.0)
-
render_partial
(<= v1.0.0)
-
render_partial_collection
(<= v1.0.0)
-
render_template
(<= v1.0.0)
-
render_text
(<= v1.0.0)
-
render_to_string
-
render_with_layout
(<= v1.0.0)
-
render_without_layout
(<= v1.0.0)
-
request (>= v4.0.2)
-
request_origin
-
reset_session
-
reset_variables_added_to_as...
-
response (>= v4.0.2)
-
rewrite_options
(>= v1.0.0)
-
sending_file?
-
send_response (>= v2.2.1)
-
session_enabled?
-
stale?
(>= v2.2.1)
-
strip_out_controller
-
template_exempt_from_layout?
-
template_exists?
-
template_path_includes_cont...
-
template_public?
-
url_for
-
validate_render_arguments
(>= v2.3.8)
-
view_paths (>= v2.0.3)
-
view_paths= (>= v2.0.3)
= private
= protected
assign_deprecated_shortcuts(request, response)
private Gone after 1.2.
Show source
# File actionpack/lib/action_controller/base.rb, line 1074 def assign_deprecated_shortcuts(request, response) DEPRECATED_INSTANCE_VARIABLES.each do |method| var = "@#{method}" if instance_variables.include?(var) value = instance_variable_get(var) unless ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy === value raise "Deprecating #{var}, but it's already set to #{value.inspect}! Use the #{method}= writer method instead of setting #{var} directly." end end instance_variable_set var, ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy.new(self, method) end end