add branch_name method

This commit is contained in:
carlad 2016-04-14 11:15:17 +02:00
parent d522072705
commit 55f8378940
2 changed files with 7 additions and 3 deletions

View File

@ -388,6 +388,3 @@ DEPENDENCIES
travis-yaml!
unicorn
yard-sinatra!
BUNDLED WITH
1.11.2

View File

@ -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