add support for activerecord 4
Merge pull request #12 from zendesk/rails4_support

Rails 4