Skip to content

Commit

Permalink
Import ActionController::MissingRenderer from Rails
Browse files Browse the repository at this point in the history
  • Loading branch information
zzak committed May 29, 2023
1 parent 956cd87 commit 4179e62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/action_controller/responder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
require "active_support/json"

module ActionController # :nodoc:
# See Responder#api_behavior
class MissingRenderer < LoadError
def initialize(format)
super "No renderer defined for format: #{format}"
end
end

# Responsible for exposing a resource to different mime requests,
# usually depending on the HTTP verb. The responder is triggered when
# <code>respond_with</code> is called. The simplest case to study is a GET request:
Expand Down

0 comments on commit 4179e62

Please sign in to comment.