|
Revision 1315, 0.8 kB
(checked in by jon.egil.stra..@gmail.com, 10 months ago)
|
Updated to 0.5.2
|
| Line | |
|---|
| 1 |
# Add your own ruby code here for app specific stuff. This file gets loaded |
|---|
| 2 |
# after the framework is loaded. |
|---|
| 3 |
puts "Started merb_init.rb ..." |
|---|
| 4 |
|
|---|
| 5 |
# Your app's dependencies, including your database layer (if any) are defined |
|---|
| 6 |
# in config/dependencies.rb |
|---|
| 7 |
require File.join(Merb.root, 'config', 'dependencies') |
|---|
| 8 |
|
|---|
| 9 |
# Here's where your controllers, helpers, and models, etc. get loaded. If you |
|---|
| 10 |
# need to change the order of things, just move the call to 'load_application' |
|---|
| 11 |
# around this file. |
|---|
| 12 |
puts "Loading Application..." |
|---|
| 13 |
Merb::BootLoader.load_application |
|---|
| 14 |
|
|---|
| 15 |
# Load environment-specific configuration |
|---|
| 16 |
environment_config = File.join(Merb.root, 'config', 'environments', Merb.environment + '.rb') |
|---|
| 17 |
require environment_config if File.exist?(environment_config) |
|---|
| 18 |
|
|---|
| 19 |
# Pasted from merb_init in trunk-version |
|---|
| 20 |
module MrBlog |
|---|
| 21 |
PER_PAGE = 10 |
|---|
| 22 |
end |
|---|