Skip to content

Commit

Permalink
exception handler added
Browse files Browse the repository at this point in the history
  • Loading branch information
CowboyOnRails committed Mar 19, 2012
1 parent b637191 commit 15164e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Gemfile.lock
Expand Up @@ -47,6 +47,7 @@ GEM
net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.1.0)
client_side_validations (3.0.12)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
Expand Down Expand Up @@ -152,6 +153,7 @@ PLATFORMS

DEPENDENCIES
capistrano (= 2.9.0)
client_side_validations (~> 3.0.0)
coffee-rails (~> 3.2.1)
devise!
dragonfly (~> 0.9.10)
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
@@ -1,6 +1,6 @@
class ApplicationController < ActionController::Base
protect_from_forgery

rescue_from Exception, :with => :handle_exceptions
before_filter :authenticate_user!, :except => [:show,:index]

def handle_exceptions(e)
Expand Down

0 comments on commit 15164e5

Please sign in to comment.