[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,6 +1,6 @@
# frozen_string_literal: true
EVENTS_PER_PAGE = 3
EVENTS_PER_PAGE = Rails.configuration.conference[:events_per_page]
class ConferencesController < ApplicationController
include ConferenceHelper