logstash/web/config/init.rb

24 lines
796 B
Ruby

# Go to http://wiki.merbivore.com/pages/init-rb
require 'config/dependencies.rb'
use_orm :datamapper
use_test :rspec
use_template_engine :erb
Merb::Config.use do |c|
c[:use_mutex] = false
c[:session_store] = 'cookie' # can also be 'memory', 'memcache', 'container', 'datamapper
# cookie session store configuration
c[:session_secret_key] = 'bfa5ae857a67de5ef5bd123f3f0c41ffac540deb' # required for cookie session store
c[:session_id_key] = '_web_session_id' # cookie session id key, defaults to "_session_id"
end
Merb::BootLoader.before_app_loads do
# This will get executed after dependencies have been loaded but before your app's classes have loaded.
end
Merb::BootLoader.after_app_loads do
# This will get executed after your app's classes have been loaded.
end