mirror of https://github.com/rails/rails
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:
parent
d24fb610fe
commit
a03ab8cef8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue