diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-22 14:00:06 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-22 14:00:06 -0300 |
commit | a03ab8cef8c712cad3dafd06c1b483782a1c0eb5 (patch) | |
tree | 04250a15a63248701509f71ca910c171ddf4ed4d /activemodel/lib/active_model | |
parent | d24fb610fed59298b4497d037c2e185b3a02bba4 (diff) | |
download | rails-a03ab8cef8c712cad3dafd06c1b483782a1c0eb5.tar.gz rails-a03ab8cef8c712cad3dafd06c1b483782a1c0eb5.tar.bz2 rails-a03ab8cef8c712cad3dafd06c1b483782a1c0eb5.zip |
Remove exception variable from rescue block
Just raising from the rescue block will re-raise the exception, so the
variable is not necessary.
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r-- | activemodel/lib/active_model/secure_password.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/secure_password.rb b/activemodel/lib/active_model/secure_password.rb index abbf96650e..474cb0aea0 100644 --- a/activemodel/lib/active_model/secure_password.rb +++ b/activemodel/lib/active_model/secure_password.rb @@ -46,9 +46,9 @@ module ActiveModel 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 |