diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-16 13:29:08 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-16 13:29:08 -0800 |
commit | 8f88a2841682d95c7bcce7ee76c156ec24bf82d8 (patch) | |
tree | 4d99abf0fd4d73512b116cf918e65fee47ce35e7 /railties/lib/rails/generators/app_base.rb | |
parent | 421e06f0901ec53542479ecad57a0c6f64b58a48 (diff) | |
download | rails-8f88a2841682d95c7bcce7ee76c156ec24bf82d8.tar.gz rails-8f88a2841682d95c7bcce7ee76c156ec24bf82d8.tar.bz2 rails-8f88a2841682d95c7bcce7ee76c156ec24bf82d8.zip |
change sqlite3-ruby => sqlite3 in the generators
Diffstat (limited to 'railties/lib/rails/generators/app_base.rb')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index 7766050632..ab7ed4eb9e 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -112,12 +112,7 @@ module Rails end def database_gemfile_entry - entry = "" - unless options[:skip_active_record] - entry = "gem '#{gem_for_database}'" - entry << ", :require => '#{require_for_database}'" if require_for_database - end - entry + options[:skip_active_record] ? "" : "gem '#{gem_for_database}'" end def rails_gemfile_entry @@ -150,19 +145,12 @@ gem 'rails', '#{Rails::VERSION::STRING}' case options[:database] when "oracle" then "ruby-oci8" when "postgresql" then "pg" - when "sqlite3" then "sqlite3-ruby" when "frontbase" then "ruby-frontbase" when "mysql" then "mysql2" else options[:database] end end - def require_for_database - case options[:database] - when "sqlite3" then "sqlite3" - end - end - def bundle_if_dev_or_edge bundle_command = File.basename(Thor::Util.ruby_command).sub(/ruby/, 'bundle') run "#{bundle_command} install" if dev_or_edge? |