GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A simple application written in merb to help you manage ad serving across multiple sites
Clone URL: git://github.com/kneath/greed.git
kneath (author)
Tue Apr 22 16:46:01 -0700 2008
commit  bf6bd400f7391f0af67b5f4a4146b4d6aac48731
tree    0eb364d3aa87211bac88aa439d614d82cba0892a
greed / config / init.rb
100644 59 lines (43 sloc) 1.71 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Make the app's "gems" directory a place where gems are loaded from
Gem.clear_paths
Gem.path.unshift(Merb.root / "gems")
 
# Make the app's "lib" directory a place where ruby files get "require"d from
$LOAD_PATH.unshift(Merb.root / "lib")
 
 
Merb::Config.use do |c|
  
  ### Sets up a custom session id key, if you want to piggyback sessions of other applications
  ### with the cookie session store. If not specified, defaults to '_session_id'.
  # c[:session_id_key] = '_session_id'
  
  c[:session_secret_key] = '25cbf852cdc1872cacf2639e7c873d9b1ccfa366'
  c[:session_store] = 'cookie'
end
 
### Merb doesn't come with database support by default. You need
### an ORM plugin. Install one, and uncomment one of the following lines,
### if you need a database.
 
### Uncomment for DataMapper ORM
# use_orm :datamapper
 
### Uncomment for ActiveRecord ORM
use_orm :activerecord
 
### Uncomment for Sequel ORM
# use_orm :sequel
 
 
### This defines which test framework the generators will use
### rspec is turned on by default
###
### Note that you need to install the merb_rspec if you want to ue
### rspec and merb_test_unit if you want to use test_unit.
### merb_rspec is installed by default if you did gem install
### merb.
###
# use_test :test_unit
use_test :rspec
 
### Add your other dependencies here
 
# These are some examples of how you might specify dependencies.
#
# dependencies "RedCloth", "merb_helpers"
# OR
# dependency "RedCloth", "> 3.0"
# OR
# dependencies "RedCloth" => "> 3.0", "ruby-aes-cext" => "= 1.0"
 
Merb::BootLoader.after_app_loads do
  ### Add dependencies here that must load after the application loads:
 
  # dependency "magic_admin" # this gem uses the app's model classes
end