Sha256: 703658744ce1139bf026ff86bb9a6685892b25e1c1069ce4c044e3d5e519aff2
Contents?: true
Size: 300 Bytes
Versions: 4
Compression:
Stored size: 300 Bytes
Contents
class Comfy::Admin::Blog::BaseController < Comfy::Admin::Cms::BaseController protected def load_blog @blog = @site.blogs.find(params[:blog_id] || params[:id]) rescue ActiveRecord::RecordNotFound flash[:error] = 'Blog not found' redirect_to comfy_admin_blogs_path(@site) end end
Version data entries
4 entries across 4 versions & 1 rubygems