reflections is now a class method, fix for rails 4.1