1 # Make the app's "gems" directory a place where gems are loaded from
3 Gem.path.unshift(Merb.root / "gems")
5 # Make the app's "lib" directory a place where ruby files get "require"d from
6 $LOAD_PATH.unshift(Merb.root / "lib")
9 Merb::Config.use do |c|
10 c[:session_secret_key] = 'efeb3cd8e1d8a6deedefd479843705ff21c022a1'
11 #c[:session_store] = 'datamapper' -- TEMPORARILY DISABLE
12 c[:session_store] = 'cookie'
16 MEGABYTE = 1024.0 * 1024.0
17 MAX_SIZE = 10 * MEGABYTE
19 ### Specify the ORM: DataMapper
22 ### Specify the Test Framework: RSpec
25 ### Specify Other Dependencies
27 # These are some examples of how you might specify dependencies.
29 # dependencies "RedCloth", "merb_helpers"
31 # dependency "RedCloth", "> 3.0"
33 # dependencies "RedCloth" => "> 3.0", "ruby-aes-cext" => "= 1.0"
35 dependency "merb-assets"
36 dependency "merb-mailer"
37 dependency "merb_helpers"
38 #dependency "merb_paginate"
41 #MerbPaginate.activate! :finder => :datamapper # require the custom finder for datamapper
42 #MerbPaginate.activate! :view_helpers # require the will_paginate view helper
44 Merb::BootLoader.after_app_loads do
45 ### Add dependencies here that must load after the application loads:
47 # dependency "magic_admin" # this gem uses the app's model classes