class method
self.remove
Ruby on Rails 7.2.3
Since v4.2.9Signature
self.remove(key)
This method is the opposite of add method.
To remove a csv renderer:
ActionController::Renderers.remove(:csv)
Parameters
-
keyreq
Source
# File actionpack/lib/action_controller/metal/renderers.rb, line 85
def self.remove(key)
RENDERERS.delete(key.to_sym)
method_name = _render_with_renderer_method_name(key)
remove_possible_method(method_name)
end
Defined in actionpack/lib/action_controller/metal/renderers.rb line 85
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Renderers