Class: PactBroker::Versions::BranchHead
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- PactBroker::Versions::BranchHead
- Defined in:
- lib/pact_broker/versions/branch_head.rb
Instance Method Summary collapse
Instance Method Details
#before_save ⇒ Object
13 14 15 16 17 18 |
# 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 ⇒ Object
20 21 22 |
# File 'lib/pact_broker/versions/branch_head.rb', line 20 def branch_name branch.name end |