Module: Junebug
- Includes:
- Camping::Session
- Defined in:
- lib/junebug/version.rb,
lib/junebug.rb,
lib/junebug/config.rb,
lib/junebug/generator.rb
Overview
:nodoc:
Defined Under Namespace
Modules: Config, Controllers, Generator, Models, VERSION, Views
Class Method Summary collapse
Class Method Details
.config ⇒ Object
37 38 39 |
# File 'lib/junebug.rb', line 37 def self.config @config ||= YAML.load(File.read('config.yml')) end |
.connect ⇒ Object
31 32 33 34 35 |
# File 'lib/junebug.rb', line 31 def self.connect Junebug::Models::Base.establish_connection(Junebug.config['dbconnection']) Junebug::Models::Base.logger = Logger.new('junebug.log') Junebug::Models::Base.threaded_connections=false end |