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,16 @@
# frozen_string_literal: true
module ActionController
module ApiRendering
extend ActiveSupport::Concern
included do
include Rendering
end
def render_to_body(options = {})
_process_options(options)
super
end
end
end