allow usage with rails 4