|
|
|
|
|
|
|
|
source 'http://rubygems.org' |
|
|
|
|
|
|
|
|
source 'https://rubygems.org' |
|
|
|
|
|
|
|
|
gem 'rails', '3.2.12' |
|
|
gem 'rails', '3.2.12' |
|
|
gem "jquery-rails", "~> 2.0.2" |
|
|
gem "jquery-rails", "~> 2.0.2" |
|
|
|
|
|
|
|
|
# Include database gems for the adapters found in the database |
|
|
# Include database gems for the adapters found in the database |
|
|
# configuration file |
|
|
# configuration file |
|
|
require 'erb' |
|
|
require 'erb' |
|
|
require 'yaml' |
|
|
|
|
|
database_file = File.join(File.dirname(__FILE__), "config/database.yml") |
|
|
database_file = File.join(File.dirname(__FILE__), "config/database.yml") |
|
|
if File.exist?(database_file) |
|
|
if File.exist?(database_file) |
|
|
database_config = YAML::load(ERB.new(IO.read(database_file)).result) |
|
|
database_config = YAML::load(ERB.new(IO.read(database_file)).result) |