{"issue":{"created_at":"2011-09-09T16:09:47Z","state":"closed","updated_at":"2011-11-28T02:00:07Z","user":{"gravatar_id":"96525ab1087cf3aae7f306b405a5c527","id":110287,"url":"https://api.github.com/users/stasl","login":"stasl","avatar_url":"https://secure.gravatar.com/avatar/96525ab1087cf3aae7f306b405a5c527?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":7,"body":"Hello, \r\n\r\nThe config.reload_between_requests  var doesn't seem to work, \r\n\r\ncallbacks in engine.rb works fine, but when it calls to RailsAdmin.setup it executes intializers block, but actual app/config/initializers/rails_admin.rb file was not reload , since Rails requires intializers/* once, \r\nso it evaluate same old proc even if did some changed into it.\r\n\r\nso i had to  load \"#{Rails.root}/config/initializers/rails_admin.rb\" to make it work and clear misc initialized class attributes\r\n\r\nAnother issue was perfomance. engine calls were executed per each request, so for assets requests as well. Therefore it was reloading config on each asset request, \r\n\r\nI had to move setup block to the bas controller.. \r\nprobably I should move \r\n\r\nRailsAdmin.module_eval{@initializers = []}\r\n... \r\n\r\ninto  RailsAdmin.reset function.\r\n\r\nBut I would like to confirm idea first, maybe i have missed something ?\r\n\r\nThanks\r\n\r\n","assignee":null,"labels":[],"pull_request":{"patch_url":"https://github.com/sferik/rails_admin/pull/708.patch","html_url":"https://github.com/sferik/rails_admin/pull/708","diff_url":"https://github.com/sferik/rails_admin/pull/708.diff"},"id":1609036,"number":708,"title":"reset config in dev mode fix","closed_at":"2011-09-13T16:55:34Z","html_url":"https://github.com/sferik/rails_admin/issues/708","milestone":null,"url":"https://api.github.com/repos/sferik/rails_admin/issues/708"},"action":"created","comment":{"created_at":"2011-11-28T02:00:07Z","updated_at":"2011-11-28T02:00:07Z","user":{"gravatar_id":"da27d97199c2e567ff848bf70984d405","id":498234,"url":"https://api.github.com/users/amalagaura","login":"amalagaura","avatar_url":"https://secure.gravatar.com/avatar/da27d97199c2e567ff848bf70984d405?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I posted a sort of hack on the mailing list.  It is a 3-4 line hack, but it works great.  The configuration is in an initializer, so there is no way to know where it is.  To accomplish this, we would have to specify the configuration file and then Rails Admin could know where it is to load it on each request in dev mode.","id":2891872,"url":"https://api.github.com/repos/sferik/rails_admin/issues/comments/2891872"}}