app/models/iro/stock.rb in iron_warbler-2.0.7.26 vs app/models/iro/stock.rb in iron_warbler-2.0.7.27
- old
+ new
@@ -26,10 +26,12 @@
has_many :positions, class_name: 'Iro::Position', inverse_of: :stock
has_many :strategies, class_name: 'Iro::Strategy', inverse_of: :stock
has_many :purses, class_name: 'Iro::Purse', inverse_of: :stock
has_many :options, class_name: 'Iro::Option', inverse_of: :stock
+ has_many :priceitems, inverse_of: :stock
+ ## my_find
def self.f ticker
self.find_by ticker: ticker
end
def to_s