aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoshiyuki Hirano <yhirano@me.com>2017-09-17 23:53:41 +0900
committerYoshiyuki Hirano <yhirano@me.com>2017-09-17 23:53:41 +0900
commit1df25e6f800d4202e5ee884d2819599e6e35e806 (patch)
tree57f52e88d220fe13707f931400e43261b48b27b4
parentfefc5e8e3757559cfbbb21390165c842bb8565f3 (diff)
downloadrails-1df25e6f800d4202e5ee884d2819599e6e35e806.tar.gz
rails-1df25e6f800d4202e5ee884d2819599e6e35e806.tar.bz2
rails-1df25e6f800d4202e5ee884d2819599e6e35e806.zip
Add `mini_magick` to default `Gemfile` as comment
* If we want to transform image on ActiveStorage, we should bundle `mini_magick`. * I've added comment block to default `Gemfile` to be easier to install this.
-rw-r--r--railties/CHANGELOG.md4
-rw-r--r--railties/lib/rails/generators/rails/app/templates/Gemfile3
2 files changed, 7 insertions, 0 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md
index 5057059898..ff440b7939 100644
--- a/railties/CHANGELOG.md
+++ b/railties/CHANGELOG.md
@@ -1,3 +1,7 @@
+* Add `mini_magick` to default `Gemfile` as comment.
+
+ *Yoshiyuki Hirano*
+
* Derive `secret_key_base` from the app name in development and test environments.
Spares away needless secret configs.
diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile
index 7b7bebc957..770247d8ca 100644
--- a/railties/lib/rails/generators/rails/app/templates/Gemfile
+++ b/railties/lib/rails/generators/rails/app/templates/Gemfile
@@ -21,6 +21,9 @@ ruby <%= "'#{RUBY_VERSION}'" -%>
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
+# Use ActiveStorage variant
+# gem 'mini_magick', '~> 4.8'
+
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development