Sha256: e8e713b7e4080e14bcf6df753292fc9a93c1d49d14b59ba67ee829f1a7fac4be
Contents?: true
Size: 351 Bytes
Versions: 9
Compression:
Stored size: 351 Bytes
Contents
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] } response = put("/admin/site_settings/#{params[:name]}", new_site_setting) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems