Sha256: a2f5e9e7aeb9bde4144f9fd913dd33716a74ba95c8e93236f7df1fc96394880e
Contents?: true
Size: 837 Bytes
Versions: 3
Compression:
Stored size: 837 Bytes
Contents
# Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ module FatFreeCRM class MissingSettings < StandardError; end class ObsoleteSettings < StandardError; end end class ActionController::Base rescue_from FatFreeCRM::MissingSettings, :with => :render_fat_free_crm_exception rescue_from FatFreeCRM::ObsoleteSettings, :with => :render_fat_free_crm_exception private def render_fat_free_crm_exception(exception) logger.error exception.inspect render :layout => false, :template => "/layouts/500", :format => :html, :status => 500, :locals => { :exception => exception } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fat_free_crm-0.13.6 | lib/fat_free_crm/exceptions.rb |
fat_free_crm-0.13.5 | lib/fat_free_crm/exceptions.rb |
fat_free_crm-0.13.4 | lib/fat_free_crm/exceptions.rb |