[refactor]Move constants to configuration file
This commit is contained in:
parent
346f324bef
commit
b7fbba162b
4 changed files with 18 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue