rename lambda references to use shorthand syntax
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class NewsUpdate < ApplicationRecord
|
||||
belongs_to_creator
|
||||
belongs_to_updater
|
||||
scope :recent, lambda {where("created_at >= ?", 2.weeks.ago).order("created_at desc").limit(5)}
|
||||
scope :recent, -> {where("created_at >= ?", 2.weeks.ago).order("created_at desc").limit(5)}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user