Fixing Brakeman warning