Make it possible to set a site setting to empty string

This commit is contained in:
Neil Lalonde
2013-06-11 14:31:38 -04:00
parent 811a0df68b
commit 82b5f57e40
2 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@ class Admin::SiteSettingsController < Admin::AdminController
end
def update
params.require(:value)
raise ActionController::ParameterMissing.new(:value) unless params.has_key?(:value)
SiteSetting.send("#{params[:id]}=", params[:value])
render nothing: true
end