spec/app/models/player.rb in mongoid-paranoia-0.3.0 vs spec/app/models/player.rb in mongoid-paranoia-1.0.0.beta1

- old
+ new

@@ -4,16 +4,16 @@ field :frags, type: Integer field :deaths, type: Integer field :impressions, type: Integer, default: 0 field :status - scope :active, where(active: true) do + scope :active, ->{ where(active: true) } do def extension "extension" end end - scope :inactive, where(active: false) + scope :inactive, ->{ where(active: false) } scope :frags_over, ->(count) { where(:frags.gt => count) } scope :deaths_under, ->(count) { where(:deaths.lt => count) } scope :deaths_over, ->(count) { where(:deaths.gt => count) } has_many :weapons