2 # | \/ |___ _ _| |__| \/ |__ _ _ _| |_
3 # | |\/| / -_) '_| '_ \ |\/| / _` | '_| _|
4 # |_| |_\___|_| |_.__/_| |_\__,_|_| \__|
6 # Copyright (C) 2008 Alex Coles
8 # This program is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24 # Make the app's "gems" directory a place where gems are loaded from
26 Gem.path.unshift(Merb.root / "gems")
28 # If you want modules and classes from libraries organized like
29 # merbapp/lib/magicwand/lib/magicwand.rb to autoload,
31 # Merb.push_path(:lib, Merb.root / "lib") # uses **/*.rb as path glob.
35 dependency "merb-assets"
36 dependency "merb-haml"
37 dependency "merb_helpers"
38 dependency "merb-mailer"
39 #dependency "merb_paginate"
40 dependency "merb_stories"
44 #MerbPaginate.activate! :finder => :datamapper # require the custom finder for datamapper
45 #MerbPaginate.activate! :view_helpers # require the will_paginate view helper
47 Merb::BootLoader.after_app_loads do
48 ### Add dependencies here that must load after the application loads:
50 # dependency "magic_admin" # this gem uses the app's model classes
53 # ==== Object Relation Mapping (ORM) Framework
58 # ==== Testing Framework
63 # ==== Application Globals
65 MEGABYTE = 1024.0 * 1024.0
66 MAX_SIZE = 10 * MEGABYTE
68 # ==== Application Configuration
70 Merb::Config.use do |c|
72 c[:session_secret_key] = 'ea30e9cd9614d32ab7823fb081104ecca546beee'
73 c[:session_store] = 'cookie'
74 # c[:session_store] = 'datamapper' ## FIXME: temporarily disabled
75 # c[:use_mutex] = false ## FIXME: disable Mutex
79 # ==== Inflector Customization
81 # Language::English::Inflector.word "Store", "A Chain"