lib/cardio/mod/loader.rb in card-1.102.0 vs lib/cardio/mod/loader.rb in card-1.103.0
- old
+ new
@@ -1,9 +1,9 @@
# -*- encoding : utf-8 -*-
module Cardio
- module Mod
+ class Mod
# Cardio::Mod::Loader is used to load all part of a mod,
# i.e. initializers, patterns, formats, chunks, layouts and sets
# cards are not accessible at this point
# A Loader object provides tools for generating and loading sets and set patterns,
@@ -26,10 +26,10 @@
SetPatternLoader.new.load
SetLoader.new(no_all: true).load
end
def load_initializers
- Cardio.config.paths["mod/config/initializers"].existent.sort.each do |init|
+ Cardio.config.paths["late/initializers"].existent.sort.each do |init|
load init
end
end
# load all files in directory