Use .dcstylejson instead of .dcstyle.json

This commit is contained in:
riking
2015-05-16 20:33:31 -07:00
parent 291d9fc65e
commit fbc06d044f
4 changed files with 7 additions and 3 deletions

View File

@ -62,7 +62,7 @@ class Admin::SiteCustomizationsController < Admin::AdminController
format.any(:html, :text) do
raise RenderEmpty.new if request.xhr?
response.headers['Content-Disposition'] = "attachment; filename=#{@site_customization.name.parameterize}.dcstyle.json"
response.headers['Content-Disposition'] = "attachment; filename=#{@site_customization.name.parameterize}.dcstylejson"
response.sending_file = true
render json: SiteCustomizationSerializer.new(@site_customization)
end