Remove exception variable from rescue block

Just raising from the rescue block will re-raise the exception, so the
variable is not necessary.
This commit is contained in:
Carlos Antonio da Silva 2013-03-22 14:00:06 -03:00
parent d24fb610fe
commit a03ab8cef8
1 changed files with 2 additions and 2 deletions

View File

@ -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