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

Version Path
discourse_api-0.34.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.33.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.32.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.31.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.30.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.29.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.28.1 lib/discourse_api/api/site_settings.rb
discourse_api-0.28.0 lib/discourse_api/api/site_settings.rb
discourse_api-0.27.0 lib/discourse_api/api/site_settings.rb