Sha256: 5d3740edf4d470c54b1593ae7d1a6f61634a31f32f7ae2ff3acd7afb2156c533
Contents?: true
Size: 899 Bytes
Versions: 1
Compression:
Stored size: 899 Bytes
Contents
class CandidateSubmission < ActiveRecord::Base belongs_to :order_line_item attr_protected :created_at, :updated_at has_tracked_status tracks_created_by_updated_by is_json :custom_fields #must be after is_json def order_txn self.order_line_item.order_txn end # helper method to get dba_organization related to this candidate_submission's # order line item def dba_organization order_line_item = OrderLineItem.find(order_line_item_id) unless order_line_item.nil? order_line_item.dba_organization end end def clone new_candidate_submission = CandidateSubmission.new new_candidate_submission.description = self.description new_candidate_submission.internal_identifier = self.internal_identifier new_candidate_submission.custom_fields = self.custom_fields new_candidate_submission.save! new_candidate_submission end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
erp_work_effort-4.2.0 | app/models/candidate_submission.rb |