Fix for rails 4 deprecation warnings ... fixes #150
Merge pull request #182 from smasry/rails4

Fix for rails 4 deprecation warnings ... fixes #150