Skip to content

Commit 8c08fc1

Browse files
committed
Proc -> lambda
1 parent 849d24a commit 8c08fc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/mongoid/base_model.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module BaseModel
66

77
included do
88
scope :recent, desc(:_id)
9-
scope :exclude_ids, Proc.new { |ids| where(:_id.nin => ids.map(&:to_i)) }
9+
scope :exclude_ids, lambda { |ids| where(:_id.nin => ids.map(&:to_i)) }
1010
scope :by_week, where(:created_at.gte => 7.days.ago.utc)
1111

1212
delegate :url_helpers, to: 'Rails.application.routes'

0 commit comments

Comments
 (0)