Sha256: c683da2586d4ec81a9939121e53833ea0b89f55505d910e8a0da9eeb9e4a2bb3
Contents?: true
Size: 700 Bytes
Versions: 15
Compression:
Stored size: 700 Bytes
Contents
require 'locomotive/coal' module Locomotive::Wagon module SteamConcern def steam_services return @steam_services if @steam_services Locomotive::Steam.configure do |config| config.mode = :test config.adapter = { name: :filesystem, path: path } config.asset_path = File.expand_path(File.join(path, 'public')) config.minify_assets = false end @steam_services = Locomotive::Steam::Services.build_instance.tap do |services| repositories = services.repositories services.set_site(repositories.site.all.first) services.locale = services.current_site.default_locale end end end end
Version data entries
15 entries across 15 versions & 1 rubygems