We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 849d24a commit 8c08fc1Copy full SHA for 8c08fc1
app/models/mongoid/base_model.rb
@@ -6,7 +6,7 @@ module BaseModel
6
7
included do
8
scope :recent, desc(:_id)
9
- scope :exclude_ids, Proc.new { |ids| where(:_id.nin => ids.map(&:to_i)) }
+ scope :exclude_ids, lambda { |ids| where(:_id.nin => ids.map(&:to_i)) }
10
scope :by_week, where(:created_at.gte => 7.days.ago.utc)
11
12
delegate :url_helpers, to: 'Rails.application.routes'
0 commit comments