[api] prepare for rails 4 port