Active Admin scopes for each instance of a related model

前端 未结 6 1740
灰色年华
灰色年华 2020-12-30 11:26

I have an issue with a dynamic active admin scope. I am attempting to create a scope for each \"manager\" of a \"project\" in my app. However, the scopes don\'t seem to up

6条回答
  •  有刺的猬
    2020-12-30 12:24

    The solution mentionned by weston Ganger work like a charm. If you don't have a default scope, you can use the all scope as the default one.

      scope :all, default: true
    

提交回复
热议问题