lib/rails/generators/app_base.rb in railties-4.1.15 vs lib/rails/generators/app_base.rb in railties-4.1.16.rc1
- old
+ new
@@ -110,10 +110,11 @@
assets_gemfile_entry,
javascript_gemfile_entry,
jbuilder_gemfile_entry,
sdoc_gemfile_entry,
spring_gemfile_entry,
+ mime_type_gemfile_entry,
@extra_entries].flatten.find_all(&@gem_filter)
end
def add_gem_entry_filter
@gem_filter = lambda { |next_filter, entry|
@@ -306,9 +307,15 @@
def spring_gemfile_entry
return [] unless spring_install?
comment = 'Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring'
GemfileEntry.new('spring', nil, comment, group: :development)
+ end
+
+ def mime_type_gemfile_entry
+ return [] unless RUBY_VERSION < '2'
+
+ GemfileEntry.new('mime-types', '< 3', nil, require: false)
end
def bundle_command(command)
say_status :run, "bundle #{command}"