Used Rails' secure_compare method inside the definition of secure_compare. This will handle the empty strings comparison and return true when both the parameters are blank strings. Fixes #4441
after_database_authentication
update
update_attributes
root_path
#respond_to?
#present