set default version to v2 for easier query/performance inspection for now

This commit is contained in:
Sven Fuchs 2012-10-08 13:22:36 +02:00
parent 1624742cfd
commit fa4c5db39b
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ GIT
GIT
remote: git://github.com/travis-ci/travis-core.git
revision: 97deed578fb6b9ed5ac5063049d22f29912cab3c
revision: 7c84635b5c180a716150c4300bff3ea8f381248c
branch: sf-travis-api
specs:
travis-core (0.0.1)

View File

@ -1,7 +1,7 @@
module Travis::Api::App::Helpers::Responders
class Json < Base
ACCEPT_VERSION = /vnd\.travis-ci\.(\d+)\+/
DEFAULT_VERSION = 'v1'
DEFAULT_VERSION = 'v2'
def render
options[:version] ||= version