Skip to content
  • Steven Hancock's avatar
    Actually only load rails admin in production mode · 4c644c33
    Steven Hancock authored
    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
This project manages its dependencies using Bundler. Learn more