Removed dependency for rails 3.0