Fixes #119 ... adding support for rails 4
Replacing the version check with the function call
Merge pull request #120 from smasry/master

Adding support for Rails 4