diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-17 13:21:22 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-17 13:21:22 -0300 |
commit | 5e4683f76a30174500a4882ae7b14ad96ff11f7f (patch) | |
tree | d5031d755080264851ebf4e49ca4b13fc54bf382 /railties/lib/rails | |
parent | ca4bfa23a15b140fcae3476ebd5dfe4874fc5a43 (diff) | |
download | rails-5e4683f76a30174500a4882ae7b14ad96ff11f7f.tar.gz rails-5e4683f76a30174500a4882ae7b14ad96ff11f7f.tar.bz2 rails-5e4683f76a30174500a4882ae7b14ad96ff11f7f.zip |
Don't need to add activerecord-deprecated_finders on edge and dev
applications
This gem will not change often to explain it be included in the
application Gemfile
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index 4fd1f00294..44fbd2f6bd 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -115,7 +115,7 @@ module Rails end def database_gemfile_entry - options[:skip_active_record] ? "" : + options[:skip_active_record] ? "" : <<-GEMFILE.strip_heredoc.chomp # Use #{options[:database]} as the database for ActiveRecord gem '#{gem_for_database}' @@ -135,13 +135,11 @@ module Rails <<-GEMFILE.strip_heredoc gem 'rails', path: '#{Rails::Generators::RAILS_DEV_PATH}' gem 'arel', github: 'rails/arel' - gem 'activerecord-deprecated_finders', github: 'rails/activerecord-deprecated_finders' GEMFILE elsif options.edge? <<-GEMFILE.strip_heredoc gem 'rails', github: 'rails/rails' gem 'arel', github: 'rails/arel' - gem 'activerecord-deprecated_finders', github: 'rails/activerecord-deprecated_finders' GEMFILE else <<-GEMFILE.strip_heredoc |