Module: DiscourseApi::API::SiteSettings

Included in:
Client
Defined in:
lib/discourse_api/api/site_settings.rb

Instance Method Summary collapse

Instance Method Details

#site_setting_update(args = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/discourse_api/api/site_settings.rb', line 5

def site_setting_update(args = {})
  params = API.params(args).required(:name, :value).to_h
  new_site_setting = { params[:name] => params[:value] }

  put("/admin/site_settings/#{params[:name]}", new_site_setting)
end