diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-03-24 09:22:11 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-03-24 09:22:11 -0300 |
commit | 9d8354c9d3858844294a9d963e32e66591e34e25 (patch) | |
tree | dafd696b4220d93dfeac6a94e88d11662f4f5813 /railties/lib/rails/generators/app_base.rb | |
parent | 8bd29122ec4e8f7e3e42ee4fe3a5b203780c3fe1 (diff) | |
parent | f42c7eee7e63d9ac4426259f6b1b424b3f759faa (diff) | |
download | rails-9d8354c9d3858844294a9d963e32e66591e34e25.tar.gz rails-9d8354c9d3858844294a9d963e32e66591e34e25.tar.bz2 rails-9d8354c9d3858844294a9d963e32e66591e34e25.zip |
Merge pull request #14447 from Houdini/gitignore
Skip sqlite3 files in .gitignore if no sqlite3 in app
Diffstat (limited to 'railties/lib/rails/generators/app_base.rb')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index fbdc47ea44..dd1438800c 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -172,6 +172,10 @@ module Rails options[value] ? '# ' : '' end + def sqlite3? + !options[:skip_active_record] && options[:database] == 'sqlite3' + end + class GemfileEntry < Struct.new(:name, :version, :comment, :options, :commented_out) def initialize(name, version, comment, options = {}, commented_out = false) super |