[PATCH] Can't warehouse:build_config

Subscribe to [PATCH] Can't warehouse:build_config 4 post(s), 3 voice(s)

 
Avatar yrashk 10 post(s)

Can’t warehouse:build_config if Anoymous Read / permission is added, failing with

undefined method `attributes’ for nil:NilClass in lib/tasks/importer.rake:138

 
Avatar yrashk 10 post(s)

Something like this http://pastie.caboo.se/80630 helps

 
Avatar rick Administator 546 post(s)

Committed, thanks.

 
Avatar dstrelau 10 post(s)

Actually, I think you want some non-nil rescue value. Otherwise, the permissions for the anonymous user don’t get written out correctly (actually, at all). rescue '*' works for me.