Patches for Rails 4