shayarnett / merbums

Merb powered forum inspired by Beast

This URL has Read+Write access

merbums / config / init.rb
100644 69 lines (51 sloc) 1.972 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
60
61
62
63
64
65
66
67
68
69
# 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] = 'cd3307269edd53555b5797a1f2b5b214dbfb195a'
  c[:session_store] = 'activerecord'
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"
%w(RedCloth whistler).each do |file|
  require file
end
 
dependencies "merb-assets", "merb_helpers", "merb_has_flash"
 
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
 
begin
  require File.join(File.dirname(__FILE__), '..', 'lib', 'authenticated_system/authenticated_dependencies')
rescue LoadError
end