updated gem dependency to 4.0 for AR and 4.0.0.beta2 for DJ