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

Version Path
discourse_api-0.47.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.46.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.45.1 lib/discourse_api/api/site_settings.rb
discourse_api-0.45.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.44.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.43.1 lib/discourse_api/api/site_settings.rb
discourse_api-0.43.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.42.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.41.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.40.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.39.3 lib/discourse_api/api/site_settings.rb
discourse_api-0.39.2 lib/discourse_api/api/site_settings.rb
discourse_api-0.39.1 lib/discourse_api/api/site_settings.rb
discourse_api-0.39.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.38.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.37.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.36.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.35.0 lib/discourse_api/api/site_settings.rb