Support Rails 4. fixes #10