Sha256: 98b4a865679985ae171b5a70d7ba6c6de02e9aef06699a058de3c1cf4481eafa
Contents?: true
Size: 751 Bytes
Versions: 6
Compression:
Stored size: 751 Bytes
Contents
puts "merb init called" require 'active_record' ActiveRecord::Base.verification_timeout = 14400 ActiveRecord::Base.logger = MERB_LOGGER Dir[DIST_ROOT+"/app/helpers/*.rb"].each { |m| require m } require DIST_ROOT+"/app/controllers/application.rb" Dir[DIST_ROOT+"/app/controllers/*.rb"].each { |m| require m } Dir[DIST_ROOT+"/app/models/*.rb"].each { |m| require m } Dir[DIST_ROOT+"/lib/**/*.rb"].each { |m| require m } Dir[DIST_ROOT+"/plugins/*/init.rb"].each { |m| require m } # set your db info here ActiveRecord::Base.establish_connection( :adapter => 'mysql', :username => 'root', :password => 'xxxxx', :database => 'merb' ) # add your own ruby code here for app specific stuff. This file gets loaded # after the framework is loaded.
Version data entries
6 entries across 6 versions & 1 rubygems