Module: ActionController::Compatibility
- Extended by:
- ActiveSupport::Concern
- Defined in:
- actionpack/lib/action_controller/metal/compatibility.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary
(collapse)
append_features, extended, included
Instance Method Details
- (Object) _handle_method_missing
58
59
60
|
# File 'actionpack/lib/action_controller/metal/compatibility.rb', line 58
def _handle_method_missing
method_missing(@_action_name.to_sym)
end
|
- (Object) _normalize_options(options)
41
42
43
44
45
46
47
48
49
50
51
|
# File 'actionpack/lib/action_controller/metal/compatibility.rb', line 41
def _normalize_options(options)
if options[:action] && options[:action].to_s.include?(?/)
ActiveSupport::Deprecation.warn "Giving a path to render :action is deprecated. " <<
"Please use render :template instead", caller
options[:template] = options.delete(:action)
end
options[:text] = nil if options.delete(:nothing) == true
options[:text] = " " if options.key?(:text) && options[:text].nil?
super
end
|
- (Object) assign_shortcuts
39
|
# File 'actionpack/lib/action_controller/metal/compatibility.rb', line 39
def assign_shortcuts(*) end
|
- (Object) initialize_template_class
38
|
# File 'actionpack/lib/action_controller/metal/compatibility.rb', line 38
def initialize_template_class(*) end
|
- (Object) method_for_action(action_name)
62
63
64
|
# File 'actionpack/lib/action_controller/metal/compatibility.rb', line 62
def method_for_action(action_name)
super || (respond_to?(:method_missing) && "_handle_method_missing")
end
|
66
67
68
|
# File 'actionpack/lib/action_controller/metal/compatibility.rb', line 66
def performed?
response_body
end
|
- (Object) render_to_body(options)
53
54
55
56
|
# File 'actionpack/lib/action_controller/metal/compatibility.rb', line 53
def render_to_body(options)
options[:template].sub!(/^\//, '') if options.key?(:template)
super || " "
end
|