Please sign in to comment.
Actually only load rails admin in production mode
This is what I think 28f8db5 was supposed to do. With the initializer in an "unless Rails.env.production?" block the entire initializer was being ignored in production mode and loaded in all other environments, but Rails Admin was still loading regardless of that.
😁This only loads rails admin in production and excludes it from all other environments. Also keeps non-admins out of /admin_panel (without the initializer it was free-for-all) and temp fixes #3210 until a new gem is released.
- Loading branch information...
Showing with 5 additions and 3 deletions.