Support Rails 4 as well.