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