app/controllers/spud/admin/pages_controller.rb in spud_cms-0.3.0 vs app/controllers/spud/admin/pages_controller.rb in spud_cms-0.3.1

- old
+ new

@@ -137,10 +137,10 @@ end end private def load_page - @page = SpudPage.where(:id => params[:id]).includes(:spud_custom_fields,:spud_page_partials).first + @page = SpudPage.where(:id => params[:id]).includes(:spud_page_partials).first if @page.blank? flash[:error] = "Page not found!" redirect_to spud_admin_pages_url() and return false end return true