mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
15 lines
377 B
Ruby
15 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
|