We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fom application_controller
def current_user begin @current_user ||= User.find(session[:user_id]) if session[:user_id] rescue Exception => e nil end end
It is bad practice to rescue Exception, see http://stackoverflow.com/questions/10048173/why-is-it-bad-style-to-rescue-exception-e-in-ruby
Exception
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Fom application_controller
It is bad practice to rescue
Exception
, see http://stackoverflow.com/questions/10048173/why-is-it-bad-style-to-rescue-exception-e-in-rubyThe text was updated successfully, but these errors were encountered: