Sha256: 51b97f108fffe6f45503f77fdd4ccdd4b0f5a95e34c48b7b32c1678cc6981c6b
Contents?: true
Size: 887 Bytes
Versions: 2
Compression:
Stored size: 887 Bytes
Contents
require 'locomotive/steam' require 'locomotive/steam/server' Locomotive::Steam.configure do |config| config.asset_path = Rails.root.join('spec', 'dummy', 'public') # rely on Mongoid for the connection information if mongoid = Mongoid.configure.sessions[:default] config.adapter = { name: :'mongoDB', database: mongoid[:database], hosts: mongoid[:hosts] } end # if Steam is used inside the engine, we can rely on the Rails # middlewares for the session and the request. config.middleware.delete Rack::Lint config.middleware.delete Rack::Session::Moneta # config.services_hook = -> (services) { # Rails.logger.warn "TODO: change content entry submission" # } end Locomotive::Common.reset Locomotive::Common.configure do |config| config_file = Rails.root.join('log', 'steam.log') config.notifier = Locomotive::Common::Logger.setup(config_file.to_s) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
locomotivecms-3.0.0.pre.alpha.2 | lib/locomotive/steam_adaptor.rb |
locomotivecms-3.0.0.pre.alpha | lib/locomotive/steam_adaptor.rb |