ActiveRecord の scope で nil などを返した時の挙動 - Qiita

ActiveRecord の scope で、引数の値が有効の場合にのみ、その値で条件を指定する以下のようなスコープを考えますclass Hoge < ActiveRecord::Base # 引…