class PactBroker::Versions::BranchHead

Public Instance Methods

before_save() click to toggle source
Calls superclass method
# File lib/pact_broker/versions/branch_head.rb, line 13
def before_save
  super
  self.pacticipant_id = branch.pacticipant_id
  self.version_id = branch_version.version_id
  self.branch_name = branch.name
end
branch_name() click to toggle source
# File lib/pact_broker/versions/branch_head.rb, line 20
def branch_name
  branch.name
end