Module: ActionController::Compatibility
Instance Method Summary
collapse
append_features, extended, included
Instance Method Details
#_handle_method_missing ⇒ Object
46
47
48
|
# File 'actionpack/lib/action_controller/metal/compatibility.rb', line 46
def _handle_method_missing
method_missing(@_action_name.to_sym)
end
|
#_normalize_options(options) ⇒ Object
35
36
37
38
39
|
# File 'actionpack/lib/action_controller/metal/compatibility.rb', line 35
def _normalize_options(options)
options[:text] = nil if options.delete(:nothing) == true
options[:text] = " " if options.key?(:text) && options[:text].nil?
super
end
|
#assign_shortcuts ⇒ Object
33
|
# File 'actionpack/lib/action_controller/metal/compatibility.rb', line 33
def assign_shortcuts(*) end
|
#initialize_template_class ⇒ Object
32
|
# File 'actionpack/lib/action_controller/metal/compatibility.rb', line 32
def initialize_template_class(*) end
|
#method_for_action(action_name) ⇒ Object
50
51
52
|
# File 'actionpack/lib/action_controller/metal/compatibility.rb', line 50
def method_for_action(action_name)
super || (respond_to?(:method_missing) && "_handle_method_missing")
end
|
54
55
56
|
# File 'actionpack/lib/action_controller/metal/compatibility.rb', line 54
def performed?
response_body
end
|
#render_to_body(options) ⇒ Object
41
42
43
44
|
# File 'actionpack/lib/action_controller/metal/compatibility.rb', line 41
def render_to_body(options)
options[:template].sub!(/^\//, '') if options.key?(:template)
super || " "
end
|