to compatible with rails41