changed card and section style to active_yaml (because of entanglement :-)

This commit is contained in:
2022-12-10 20:29:31 +02:00
parent d936fc05ab
commit 04e189f913
16 changed files with 51 additions and 70 deletions

View File

@ -4,11 +4,10 @@ require "merged/engine"
module Merged
def self.load_data
["card_style" , "section_style"].each do |kind|
# loading egine definitions first, can be overriden
load_from kind , Engine.root.join("config/merged/#{kind}.yaml")
end
Option.load
# pre-load data
Option.all
CardStyle.all
SectionStyle.all
Page.load_pages
Image.load_images
end