rails 4 compatibility
Merge pull request #5 from mdemare/rails4_support

Added support for rails 4