我有named_scope :business, :conditions => "processing_time_15_minutes is null"
如何重构rails4风格
THX
答案 0 :(得分:1)
你走了:
scope :business, -> { where(processing_time_15_minutes: nil) }
答案 1 :(得分:1)
scope :business, -> { where(processing_time_15_minutes: nil) }