Updated for Rails 4, Ruby 2 and Zeus