Sha256: 6f04b3247be88fdafe165223d17ac95327ad8d8f9f59618812ad4aec8f639a9c
Contents?: true
Size: 656 Bytes
Versions: 16
Compression:
Stored size: 656 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')) 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
16 entries across 16 versions & 1 rubygems