spec/app/models/preference.rb in mongoid-versioning-0.2.0 vs spec/app/models/preference.rb in mongoid-versioning-1.0.0.beta1

- old
+ new

@@ -3,7 +3,7 @@ field :name, type: String field :value, type: String field :ranking, type: Integer has_and_belongs_to_many :people, validate: false validates_length_of :name, minimum: 2, allow_nil: true - scope :posting, where(:value.in => [ "Posting" ]) + scope :posting, ->{ where(:value.in => [ "Posting" ]) } end