move defining method for RailsAdmin integration to hooks