Resolve dependency for rails 4.1