Skip to content
  • Steven Hancock's avatar
    4c644c33
    Actually only load rails admin in production mode · 4c644c33
    Steven Hancock a rédigé
    This is what I think 28f8db51 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.
    4c644c33
    Actually only load rails admin in production mode
    Steven Hancock a rédigé
    This is what I think 28f8db51 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.
Les dépendances de ce projet sont gérées grâce à Bundler. En savoir plus
Chargement en cours