rename lambda references to use shorthand syntax

This commit is contained in:
Albert Yi
2018-05-10 11:18:02 -07:00
parent 320f1a426e
commit 72f319ccf3
27 changed files with 69 additions and 69 deletions

View File

@@ -1,7 +1,7 @@
class ArtistCommentaryVersion < ApplicationRecord
belongs_to :post
belongs_to_updater
scope :for_user, lambda {|user_id| where("updater_id = ?", user_id)}
scope :for_user, ->(user_id) {where("updater_id = ?", user_id)}
def self.search(params)
q = super