lib/locomotive/steam/adapters/filesystem.rb in locomotivecms_steam-1.4.1 vs lib/locomotive/steam/adapters/filesystem.rb in locomotivecms_steam-1.5.0.beta1

- old
+ new

@@ -7,11 +7,10 @@ require_relative 'filesystem/sanitizer' require_relative_all 'filesystem/sanitizers' module Locomotive::Steam - class FilesystemAdapter include Morphine include Locomotive::Steam::Adapters::Concerns::Key @@ -114,19 +113,19 @@ def collection(mapper, scope) yaml_loaders[mapper.name].load(scope) end def build_yaml_loaders - %i(sites pages content_types content_entries snippets translations theme_assets).inject({}) do |memo, name| + %i(sites pages content_types content_entries snippets sections translations theme_assets).inject({}) do |memo, name| memo[name] = build_klass('YAMLLoaders', name).new(site_path) memo end end def build_sanitizers hash = Hash.new { build_klass('Sanitizers', :simple).new } - %i(sites pages content_types content_entries snippets).inject(hash) do |memo, name| + %i(sites pages content_types content_entries snippets sections).inject(hash) do |memo, name| memo[name] = build_klass('Sanitizers', name).new memo end end @@ -136,11 +135,7 @@ end def site_path options.respond_to?(:has_key?) ? options[:path] : options end - end - end - -