简体   繁体   中英

Rails: Active admin load user on every page

Every time I reload a page (a totally blank page as well) I get this:

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?  [["id", 1], ["LIMIT", 1]]

So Active Admin load the admin user 1 every time I reload the page. Is it normal? There is one way to load AFTER other sql query?

I think that this query runs every time to check if the current admin user is a valid and existing one. I'd never used Active Admin, but with rails admin is the same thing

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM