Class: IB::Contract

Inherits:
Model
  • Object
show all
Defined in:
lib/models/ib/contract.rb

Instance Method Summary collapse

Instance Method Details

#saveObject

if con_id is not set, the contract cannot be saved

if con_id or rid is present, the contract is updated



7
8
9
10
# File 'lib/models/ib/contract.rb', line 7

def save
	return false if con_id.blank? || con_id.zero?
	super
end