title: Associated (dynamic) Scopes not working until I made any change in register file
body: <p>I have two models, restaurant and cuisine with a many to many association. And I have this in my app/admin/restaurant.rb</p>
  
  <pre><code>ActiveAdmin.register Restaurant do
    scope("All"){|scope| scope.order("created_at desc")}
    Cuisine.all.each do |c|
      scope(c.name) { |scope| scope.joins(:cuisines).where("cuisines.id=?",c.id)}
    end
  end
  </code></pre>
  
  <p>The problem is whenever I delete or add a new cuisine the scopes do not change until I make a change to my admin/restaurant.rb file. How can I fix this issue?</p>