added rails 4 compatibility
Merge pull request #13 from d0m0v0y/rails_4_compatibility

added rails 4 compatibility