rails 3+ support. unnecessary dependencies removed