Skip to content

Commit

Permalink
Use lambdas for the default_scope, a requirement on Mongoid >= 4.0.0.…
Browse files Browse the repository at this point in the history
…beta1
  • Loading branch information
rafaelgaspar committed Feb 18, 2014
1 parent 827c885 commit c2696cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/mongoid_spec.rb
Expand Up @@ -547,7 +547,7 @@ def filename

@class.class_eval do
embeds_one :mongo_location
default_scope where(:always_false => false)
default_scope ->{ where(:always_false => false) }
end

@doc = @class.new
Expand Down Expand Up @@ -642,7 +642,7 @@ def filename

@class.class_eval do
embeds_many :mongo_locations
default_scope where(:always_false => false)
default_scope ->{ where(:always_false => false) }
end

@doc = @class.new
Expand Down

0 comments on commit c2696cf

Please sign in to comment.