upgrade class core ext to rails 3