lib/ib-ruby/models/order_state.rb in ib-ruby-0.7.10 vs lib/ib-ruby/models/order_state.rb in ib-ruby-0.7.11
- old
+ new
@@ -61,17 +61,10 @@
validates_format_of :status, :without => /^$/, :message => 'must not be empty'
validates_numericality_of :price, :average_price, :allow_nil => true
validates_numericality_of :local_id, :perm_id, :client_id, :parent_id, :filled,
:remaining, :only_integer => true, :allow_nil => true
- def default_attributes
- super.merge :filled => 0,
- :remaining => 0,
- :price => 0.0,
- :average_price => 0.0
- end
-
- ## Testing Order state:
+ ## Testing Order state:
def new?
status.empty? || status == 'New'
end