Skip to content
Browse files

Remove exception variable from rescue block

Just raising from the rescue block will re-raise the exception, so the
variable is not necessary.
  • Loading branch information...
1 parent d24fb61 commit a03ab8cef8c712cad3dafd06c1b483782a1c0eb5 @carlosantoniodasilva carlosantoniodasilva committed Mar 22, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/lib/active_model/secure_password.rb
View
4 activemodel/lib/active_model/secure_password.rb
@@ -46,9 +46,9 @@ def has_secure_password(options = {})
begin
gem 'bcrypt-ruby', '~> 3.0.0'
require 'bcrypt'
- rescue LoadError => e
+ rescue LoadError
$stderr.puts "You don't have bcrypt-ruby installed in your application. Please add it to your Gemfile and run bundle install"
- raise e
+ raise
end
attr_reader :password

0 comments on commit a03ab8c

Please sign in to comment.
Something went wrong with that request. Please try again.