spec/spec_helper.rb in binarylogic-searchlogic-2.0.1 vs spec/spec_helper.rb in binarylogic-searchlogic-2.1.0
- old
+ new
@@ -49,9 +49,10 @@
end
class User < ActiveRecord::Base
belongs_to :company
has_many :orders, :dependent => :destroy
+ alias_scope :username_has, lambda { |value| username_like(value) }
end
class Order < ActiveRecord::Base
belongs_to :user
has_many :line_items, :dependent => :destroy