Supports rails 4.0