Module: Binda::MaintenanceHelpers

Extended by:
ActiveSupport::Concern
Defined in:
app/controllers/concerns/binda/maintenance_helpers.rb

Instance Method Summary collapse

Instance Method Details

#is_maintenance_modeObject



11
12
13
14
15
16
17
# File 'app/controllers/concerns/binda/maintenance_helpers.rb', line 11

def is_maintenance_mode
	if B.get_boards('dashboard').includes(:radios).first.get_radio_choice('maintenance-mode')[:value] == 'true' && !user_signed_in?
		return true
	else
		return false
	end
end