Sha256: f39d5f26f98f089060ddd49c66cc3d4d009f48175da4daffb9e0d729441e52f9
Contents?: true
Size: 1.15 KB
Versions: 16
Compression:
Stored size: 1.15 KB
Contents
# This controller is now deprecated. At the moment I find no use # for the enableg, tagline, or description. #------------------------------------------------------------------------------ class DmForum::Admin::ForumSitesController < DmForum::Admin::AdminController include DmForum::PermittedParams before_filter :forum_site_lookup # GET /admin/fms/forum_site #------------------------------------------------------------------------------ def show unless @forum_site @forum_site = ForumSite.create(enabled: true) end end # GET /admin/fms/forum_site/edit #------------------------------------------------------------------------------ def edit end # PUT /admin/fms/forum_site #------------------------------------------------------------------------------ def update if @forum_site.update_attributes(forum_site_params) redirect_to dm_forum.admin_forum_site_url, notice: "Forum settings were successfully updated." else render action: :edit end end private #------------------------------------------------------------------------------ def forum_site_lookup @forum_site = ForumSite.site end end
Version data entries
16 entries across 16 versions & 1 rubygems