Remove rails 3 dependency

So we can use this with Rails 4.