spec/spec_helper.rb in binarylogic-searchlogic-2.2.3 vs spec/spec_helper.rb in binarylogic-searchlogic-2.3.0
- old
+ new
@@ -69,9 +69,10 @@
end
class User < ActiveRecord::Base
belongs_to :company, :counter_cache => true
has_many :orders, :dependent => :destroy
+ has_many :orders_big, :class_name => 'Order', :conditions => 'total > 100'
end
class Order < ActiveRecord::Base
belongs_to :user
has_many :line_items, :dependent => :destroy