Sha256: 88da580eeea6244c2e70815afc967c2d75880d22b08b9a806cc3e123dbe0d5e1
Contents?: true
Size: 354 Bytes
Versions: 6
Compression:
Stored size: 354 Bytes
Contents
# frozen_string_literal: true module DiscourseApi module API module SiteSettings 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 end end end
Version data entries
6 entries across 6 versions & 1 rubygems