aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-03-22 14:00:06 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-03-22 14:00:06 -0300
commita03ab8cef8c712cad3dafd06c1b483782a1c0eb5 (patch)
tree04250a15a63248701509f71ca910c171ddf4ed4d /activemodel
parentd24fb610fed59298b4497d037c2e185b3a02bba4 (diff)
downloadrails-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')
-rw-r--r--activemodel/lib/active_model/secure_password.rb4
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