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
33 34 35 |
# File 'lib/junebug.rb', line 33 def self.config @config ||= YAML.load(File.read('config.yml')) end |
.connect ⇒ Object
27 28 29 30 31 |
# File 'lib/junebug.rb', line 27 def self.connect Junebug::Models::Base.establish_connection :adapter => 'sqlite3', :database => 'junebug.db' Junebug::Models::Base.logger = Logger.new('junebug.log') Junebug::Models::Base.threaded_connections=false end |