rails 4.2.x support
Merge pull request #189 from Bonias/rails-4-2

rails 4.2.x support