开发者

Disappearing tables in rails_admin

开发者 https://www.devze.com 2023-03-28 16:44 出处:网络
I have some tables missing from the rails_admin interface. sometimes they appear and disappear when refreshing the page. this happens in development and production.

I have some tables missing from the rails_admin interface. sometimes they appear and disappear when refreshing the page. this happens in development and production.

I'm using rails 3.0.9 and rails_admin from 3.0 branch When looking at the logs, it seems this query returns wrong data sometimes :

SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

A开发者_运维问答ny suggestions on how to investigate this issue ?


It seems to be a regression in rails_admin : http://groups.google.com/group/rails_admin/browse_thread/thread/8c15daf46953a046

adding the following code to the models solves the symptom

  rails_admin do 
    visible { true } 
  end 
0

精彩评论

暂无评论...
验证码 换一张
取 消