Sort ActiveAdmin Index by boolean

1

In suggestion.rb I have the following code:

 index  title: "Sugestões" do
    column "Título", :title
    column "Autor", :user
    column "Aprovado", :published
    actions
  end

The last column: published is boolean type. I want to sort this index by published: false.

Vlw!

    
asked by anonymous 30.12.2016 / 20:38

0 answers