title: how to hide inactive data in active admin dashboard
body: <p>I am trying to hide data which have an active/inactive boolean tag. On the dashboard of my active admin app I only want the active driver data to be shown.</p>
  
  <p>For each panel I have the following code:</p>
  
  <pre><code>column do
        span
        #if Driver.where(status: "false", active: true).unscope(where: :status) == Driver.where(active: false)
        if Driver.where( 'v_ins_exp &lt; ?', Time.now).present?
  
          panel "Vehicle Insurance expired" do
              table_for Driver.where('v_ins_exp &lt; ?', Time.now).reverse_order do |t|
                t.column "REMNET ID", :remnet
                t.column "First Name", :f_name
                t.column "Last Name", :l_name
                t.column "Vehicle Make", :v_make
                t.column "Vehicle Reg",:v_reg
                t.column("Insurance Date") { |driver| driver.v_ins_exp? ? l(driver.v_ins_exp, :format =&gt; :long) : '-' }
              end
            #end
          end
        end 
      end 
  </code></pre>
  
  <p>I have # the line where i used the IF statment, currently it removed all data from the panel without checking the status of the driver.</p>
  
  <p>I have also tried using scope and default_scope but it throws back 'undefined method' error.</p>
  
  <p>Im not sure if its my approach thats wrong or the code thats wrong.</p>