fixing bug undefined method `abstract_model'

copied from https://github.com/sferik/rails_admin/pull/1944/files