[ax] Change dependencies to support rails 4