gregbell/active_admin — pull request #716 by saaji (2011-11-02 21:35:04+00:00)
Title: always_reload_paths config parameter implemented

Trying out to use ActiveAdmin in Vagrant i've found version v0.3.2 works fine, but version v0.3.3 does not react to the changes under app/admin. So to see the result one has to restart whole rails.
It turned out that this behaviour was introduced by commit ef255e5119cd585e1f3bb36428651b9d7dd9704f. The reason is that in Vagrant virtual environment the project directory is mounted through VirtualBox similarily to the network disk. This way if one edits the file under app/admin being outside of the box - ActiveAdmin never detects the change.
I have implemented an on/off parameter that makes ActiveAdmin to work similarily to v0.3.2 when needed. Thus, having something like

```ruby
config.always_reload_paths = true if ENV['LOGNAME'] == 'vagrant'
```

in ActiveAdmin initializer solves the problem.