[refactor]Move constants to configuration file

This commit is contained in:
Jimmy 2021-04-12 14:01:49 +08:00
parent 346f324bef
commit b7fbba162b
4 changed files with 18 additions and 6 deletions

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true
DEFAULT_LOGO = 'snapcon_logo.png'
DEFAULT_COLOR = '#0B3559'
DEFAULT_LOGO = Rails.configuration.conference[:default_logo]
DEFAULT_COLOR = Rails.configuration.conference[:default_color]
module ConferenceHelper
# Return true if only call_for_papers or call_for_tracks or call_for_booths is open