public
Description: Goldberg -- the rapid website framework for Ruby on Rails
Homepage: http://goldberg.240gl.org
Clone URL: git://github.com/urbanus/goldberg.git
lardawge (author)
Mon Dec 08 11:42:59 -0800 2008
TomK32 (committer)
Tue Apr 28 00:38:56 -0700 2009
commit  dbc95796b0137bbc9480836b0657b8303e099398
tree    3894d39095a816b65ab42b0d9a171accd9b2a771
parent  3040f30e9d861064a7d1bb06c98634d328058509
goldberg / init.rb
100644 16 lines (13 sloc) 0.544 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'rails_generator'
 
# Set load paths to include the plugin /app directory
controller_path = "#{File.dirname(__FILE__)}/app/controllers"
model_path = "#{File.dirname(__FILE__)}/app/models"
helper_path = "#{File.dirname(__FILE__)}/app/helpers"
$LOAD_PATH << controller_path
$LOAD_PATH << model_path
ActiveSupport::Dependencies.load_paths += [ controller_path, model_path, helper_path ]
config.controller_paths << controller_path
 
# Goldberg's libraries
Dir["#{File.dirname(__FILE__)}/lib/**/*.rb"].each do |lib|
  require lib
end