diff --git a/Gemfile.lock b/Gemfile.lock index f4305853..8aa7952c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -388,6 +388,3 @@ DEPENDENCIES travis-yaml! unicorn yard-sinatra! - -BUNDLED WITH - 1.11.2 diff --git a/lib/travis/api/v3/models/request.rb b/lib/travis/api/v3/models/request.rb index fd1387a8..a5df405f 100644 --- a/lib/travis/api/v3/models/request.rb +++ b/lib/travis/api/v3/models/request.rb @@ -6,5 +6,12 @@ module Travis::API::V3 has_many :builds serialize :config serialize :payload + + # has_one :branch_name, + # primary_key: [:id, :branch_name] + + def branch_name + read_attribute(:branch_name) + end end end