spec/spec_helper.rb in binarylogic-searchlogic-2.1.13 vs spec/spec_helper.rb in binarylogic-searchlogic-2.2.0
- old
+ new
@@ -69,12 +69,9 @@
end
class User < ActiveRecord::Base
belongs_to :company, :counter_cache => true
has_many :orders, :dependent => :destroy
- named_scope :uname, lambda { |value| {:conditions => ["users.username = ?", value]} }
- alias_scope :username_has, lambda { |value| username_like(value) }
- alias_scope :blank_scope, lambda { |value| }
end
class Order < ActiveRecord::Base
belongs_to :user
has_many :line_items, :dependent => :destroy