automatically set precompile assets

backport of #3489
Merge pull request #3659 from activeadmin/backport_of_3489

automatically set precompile assets