Files
redmine/lib/redmine_workload/wl_user_data_defaults.rb
Roman Vaníček 580eedcab2 Squashed 'plugins/redmine_workload/' content from commit f94bb00
git-subtree-dir: plugins/redmine_workload
git-subtree-split: f94bb00e5eb387a55379714b8f58fb6f35517174
2023-03-24 11:34:26 +01:00

17 lines
411 B
Ruby

# frozen_string_literal: true
##
# Provides the default values for WlUserData object
#
module WlUserDataDefaults
def default_attributes
{ threshold_lowload_min: settings['threshold_lowload_min'],
threshold_normalload_min: settings['threshold_normalload_min'],
threshold_highload_min: settings['threshold_highload_min'] }
end
def settings
Setting['plugin_redmine_workload']
end
end