Added conditionals so that the app doesn't depend on RailsAdmin.