You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
365 B
15 lines
365 B
# Development Constants
|
|
module LiveConstants
|
|
# constants
|
|
STIMULUS_DEBUG = false
|
|
LOG_ACTIVE_RECORD = false
|
|
LOG_ACTION_VIEW = false
|
|
|
|
def self.reload!
|
|
ActionView::Base.logger.level = LOG_ACTION_VIEW ? :debug : :fatal
|
|
ActiveRecord::Base.logger.level = LOG_ACTIVE_RECORD ? :debug : :fatal
|
|
SemanticLogger[to_s].warn 'reloaded!'
|
|
end
|
|
|
|
reload!
|
|
end
|