spec/spec_helper.rb in binarylogic-searchlogic-2.1.11 vs spec/spec_helper.rb in binarylogic-searchlogic-2.1.12
- old
+ new
@@ -71,9 +71,10 @@
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