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

Version Path
discourse_api-2.0.1 lib/discourse_api/api/site_settings.rb
discourse_api-2.0.0 lib/discourse_api/api/site_settings.rb
discourse_api-1.1.0 lib/discourse_api/api/site_settings.rb
discourse_api-1.0.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.48.1 lib/discourse_api/api/site_settings.rb
discourse_api-0.48.0 lib/discourse_api/api/site_settings.rb