Sha256: 1599bd65d3a7b8f840a2386932f71f43ff7e39bb029b5f29664b0cf867e732fb
Contents?: true
Size: 499 Bytes
Versions: 36
Compression:
Stored size: 499 Bytes
Contents
module Praxis module BootloaderStages class PluginConfigLoad < Stage def execute application.plugins.each do |config_key, plugin| context = [plugin.class.name] value = plugin.load_config! object = plugin.config_attribute.load(value, context) if object application.config.send("#{config_key}=", object) end plugin.config = application.config.send("#{config_key}") end end end end end
Version data entries
36 entries across 36 versions & 1 rubygems