add Rails 4 support
Merge pull request #32 from frodsan/rails4_support

add Rails 4 support