fix root path and tests

This commit is contained in:
2023-01-29 18:34:51 +02:00
parent a95c97c7ea
commit b44c29ff50
5 changed files with 5 additions and 3 deletions

View File

@ -11,7 +11,7 @@ module Merged
raise "#{full} contained #{got.class}, not Array" unless got.class == Array
got
end
loaded_files.sum
loaded_files.first + loaded_files.last
end
end
end

View File

@ -5,7 +5,7 @@ module Merged
# and the fact that they persist in ActiveYaml
class ViewBase < ActiveBase
set_root_path Merged.data_dir
set_root_path Rails.root.join(Merged.data_dir)
include ActiveHash::Associations
belongs_to :image , class_name: "Merged::Image"