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")
8 ### Uncomment for ActiveRecord ORM
11 unless defined? MERB_RADIANT_ROOT
12 if File.directory?(root_path = "#{Merb.root}/vendor/radiant")
13 MERB_RADIANT_ROOT = root_path
15 environment = IO.readlines("#{File.dirname(__FILE__)}/radiant_environment.rb").reject { |l| l.strip =~ /^#/ }.join
16 environment =~ /[^#]\s*RADIANT_GEM_VERSION\s*=\s*(["'])([\d.]+)\1/
20 # if version and (radiant_gem = Gem.cache.search('radiant', version).first)
21 # if self.class.method_defined?(:gem)
22 # gem "radiant", "=#{version}"
25 # require_gem "radiant", "=#{version}"
29 #Cannot find gem or source for Radiant #{version}:
30 # Install the missing gem with 'gem install -v=#{version} radiant', or change
31 # environment.rb to define RADIANT_GEM_VERSION with your desired version.
35 MERB_RADIANT_ROOT = Merb.root
39 #load File.join(MERB_RADIANT_ROOT, 'config', 'boot.rb')
41 Merb::Config.use do |c|
42 c[:session_secret_key] = '21df15c818c7fbf70c5c368379ddf2f2bba3518d'
43 c[:session_store] = 'cookie'
48 # dependencies "RedCloth", "merb_helpers"
50 # dependency "RedCloth", "> 3.0"
52 # dependencies "RedCloth" => "> 3.0", "ruby-aes-cext" => "= 1.0"
54 Merb::BootLoader.after_app_loads do
55 ### Add dependencies here that must load after the application loads:
57 # dependency "magic_admin" # this gem uses the app's model classes