This repository was archived by the owner on Jul 24, 2020. It is now read-only.
This repository was archived by the owner on Jul 24, 2020. It is now read-only.
Navbar breaks pre-app setup layout #1144
Closed
Description
Since the navbar calls can? :manage, Reservation
and CanCanCan
checks for AppConfig.first.enable_guests
in ability.rb
, we get a NoMethodError
when rendering the "your app is not set up yet" page. We should either return false unless AppConfig.nil?
at the start or check for if AppConfig.first && AppConfig.first.enable_guests
to prevent this.
Activity