Fix dependency for rails