mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-24 22:42:27 -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
|