Class: IB::Contract
- Inherits:
-
Model
- Object
- Model
- IB::Contract
- Defined in:
- lib/models/ib/contract.rb
Instance Method Summary collapse
-
#save ⇒ Object
if con_id is not set, the contract cannot be saved.
Instance Method Details
#save ⇒ Object
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 |