supports rails 4, too!