Skip to content

Instantly share code, notes, and snippets.

@lobo-tuerto
Created October 15, 2008 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lobo-tuerto/16990 to your computer and use it in GitHub Desktop.
Save lobo-tuerto/16990 to your computer and use it in GitHub Desktop.
Merb::Config.use do |c|
c[:framework] = { :support => Merb.root/'app'/'support'}
# Sets up a custom session id key which is used for the session persistence
# cookie name. If not specified, defaults to '_session_id'.
c[:session_id_key] = '_sif_session_id'
# The session_secret_key is only required for the cookie session store.
c[:session_secret_key] = '2af3df4fcfd64df54fd0010701fad98f97bee959'
# There are various options here, by default Merb comes with 'cookie',
# 'memory', 'memcache' or 'container'.
# You can of course use your favorite ORM instead:
# 'datamapper', 'sequel' or 'activerecord'.
c[:session_store] = 'cookie'
end
Merb.dir_for(:support)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment