Rails 4.1.6 support.
Merge pull request #600 from Loremaster/rails4

Rails 4.1.6 support.