Update to rails 4.2.0.beta4

This commit is contained in:
2014-11-21 15:03:00 +01:00
parent 8837037b05
commit a73ceb0df2
6 changed files with 98 additions and 84 deletions
+10
View File
@@ -36,6 +36,16 @@ private
def set_locale
I18n.locale = (params[:locale].presence || I18n.default_locale).to_sym
end
def _render_with_renderer_json(resource, options)
serializer = build_json_serializer(resource, options)
if serializer
super(serializer, options)
else
super
end
end
def layout_by_resource(*args)
#if devise_controller?
@@ -17,7 +17,6 @@ module Suppliers
# end
# end
# end
render json: @sections, each_serializer: SupplierExtendedSectionSerializer
end