mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 11:32:24 -05:00
16 lines
377 B
Ruby
16 lines
377 B
Ruby
|
class Admin::SiteContentsController < Admin::AdminController
|
||
|
|
||
|
def show
|
||
|
site_content = SiteContent.find_or_new(params[:id].to_s)
|
||
|
render_serialized(site_content, SiteContentSerializer)
|
||
|
end
|
||
|
|
||
|
def update
|
||
|
site_content = SiteContent.find_or_new(params[:id].to_s)
|
||
|
site_content.content = params[:content]
|
||
|
site_content.save!
|
||
|
|
||
|
render nothing: true
|
||
|
end
|
||
|
end
|