Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.371 kB
case ENV['DB']
when "mysql"; gem "mysql2", "~> 0.3.17"
when "sqlite"; gem "sqlite3"
when "postgres"; gem "pg", "~> 0.17.1"
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.