Update for Rails 4

Updates Batchy for Rails 4 compatibility.