travis-ci/travis-ci — pull request #354 by simi (2011-12-16 06:48:51+00:00)
Title: rescue_from :with syntax corrected

Response 500 was returned instead of 406 caused by bad rescue_from usage.

Before:

```ruby
Started PUT "/profile/service_hooks/simi:i18n_locale_editor" for 127.0.0.1 at 2011-12-16 07:33:20 +0100
RailsDevTweaks: Skipping ActionDispatch::Reloader hooks for this request.
Processing by ServiceHooksController#update as */*
Parameters: {"uid"=>"simi:i18n_locale_editor", "owner_name"=>"simi", "name"=>"i18n_locale_editor", "description"=>"I18n locale editor for Ruby on Rails", "url"=>"https://github.com/simi/i18n_locale_editor", "active"=>"true", "id"=>"simi:i18n_locale_editor"}
User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
Repository Load (0.5ms) SELECT "repositories".* FROM "repositories" WHERE "repositories"."owner_name" = 'simi' AND "repositories"."name" = 'i18n_locale_editor' LIMIT 1
Token Load (0.5ms) SELECT "tokens".* FROM "tokens" WHERE "tokens"."user_id" = 1 LIMIT 1
Completed 500 Internal Server Error in 974ms

NameError (undefined method `not_acceptable' for class `ServiceHooksController'):
```

After:

```ruby
Started PUT "/profile/service_hooks/simi:i18n_locale_editor" for 127.0.0.1 at 2011-12-16 07:47:20 +0100
RailsDevTweaks: Skipping ActionDispatch::Reloader hooks for this request.
Processing by ServiceHooksController#update as */*
Parameters: {"uid"=>"simi:i18n_locale_editor", "owner_name"=>"simi", "name"=>"i18n_locale_editor", "description"=>"I18n locale editor for Ruby on Rails", "url"=>"https://github.com/simi/i18n_locale_editor", "active"=>"true", "id"=>"simi:i18n_locale_editor"}
User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
Repository Load (1.1ms) SELECT "repositories".* FROM "repositories" WHERE "repositories"."owner_name" = 'simi' AND "repositories"."name" = 'i18n_locale_editor' LIMIT 1
Token Load (0.4ms) SELECT "tokens".* FROM "tokens" WHERE "tokens"."user_id" = 1 LIMIT 1
Completed 406 Not Acceptable in 973ms
```