simplify rails dependecy