discourse-adplugin/app/controllers/house_ad_settings_controller.rb
Neil Lalonde 1bd80e1afe FEATURE: House Ads
Allows creating ads within Discourse admin at Plugins > House Ads.
Write the ads in html and style them with CSS in themes.
2019-05-03 11:39:34 -04:00

11 lines
242 B
Ruby

module ::AdPlugin
class HouseAdSettingsController < ::ApplicationController
requires_plugin AdPlugin.plugin_name
def update
HouseAdSetting.update(params[:id], params[:value])
render json: success_json
end
end
end