rails 4.2 compatible

looks some kind of ugly, but i'd rather not to bump version because of this change