apply https://github.com/sferik/rails_admin/pull/1528