Update rails.
Use fetch instead of plain access.

There's better way but this works as quick workaround.