Fix AR Relation error when deployment deploy is started

I am not 100% sure this solution is correct, there might better method to call on AR relation to get Array. Also note that in further future (Rails 4), '''all''' returns AR relation too instead of array.