Fixed issue with active record namespace.