Backport Rails 5 API controller

This commit is contained in:
Artur Beljajev 2018-06-09 05:04:21 +03:00
parent 157b383738
commit 41cb23f22f
4 changed files with 181 additions and 0 deletions

View file

@ -0,0 +1,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