Scopes without parameters with a ransack form

前端 未结 0 1309
予麋鹿
予麋鹿 2020-11-28 00:04

I want to have a checkbox in my ransack form that selects to use a class method or scope. The scope has no parameters.

#model
def self.new
    where.not(sku:          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题