aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/basic_implicit_render.rb
blob: 2dc990f303c23ca53adb6299fc9baaa901fbf8e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module ActionController
  module BasicImplicitRender # :nodoc:
    def send_action(method, *args)
      super.tap { default_render unless performed? }
    end

    def default_render(*args)
      head :no_content
    end
  end
end