# File lib/backup/configuration/helpers.rb, line 11 def load_defaults! module_names = self.class.name.split('::')[1..-1] configuration = Backup::Configuration module_names.each do |module_name| configuration = configuration.const_get(module_name) end getter_methods.each do |attribute| if configuration.respond_to?(attribute) self.send("#{attribute}=", configuration.send(attribute)) end end end