Skip to content

Instantly share code, notes, and snippets.

@lukesutton
Created November 13, 2008 12:23
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 lukesutton/24416 to your computer and use it in GitHub Desktop.
Save lukesutton/24416 to your computer and use it in GitHub Desktop.
$KCODE = 'UTF8'
require 'dm-core'
dependency "merb-assets"
use_orm :datamapper
use_test :rspec
use_template_engine :haml
Merb::Config.use do |c|
c[:session_id_key] = 'saywhat'
c[:session_secret_key] = 'cbdf5572c84cd403a94c32a68e50775f786c4f59'
c[:session_store] = 'cookie'
end
Merb::BootLoader.before_app_loads do
Merb::Controller.send(:include, Merb::AssetsMixin)
end
Merb::BootLoader.after_app_loads do
DataMapper.setup(:default, "sqlite3://#{Merb.root / "db" / Merb.environment}.db")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment