Optimistic Rails dependency