make it work with rails 3 and 4; bump version to 1.3.0