use constantize with rescue instead safe_constantize - rails 3 and 3.1