Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.368 kb
case ENV['DB']
when "mysql"; gem "mysql2", "0.3.10"
when "sqlite"; gem "sqlite3"
when "postgres"; gem "pg", "~> 0.12.2"
end
def gem(*args)
# Override 'gem' method to block any other database gems in the 'real' Gemfile
super unless %w(pg sqlite3 mysql2).include?(args.first)
end
# Eval Gemfile
eval(IO.read(File.join(File.dirname(__FILE__), 'Gemfile')), binding)
Jump to Line
Something went wrong with that request. Please try again.