Added compatibility with rails 4.1