aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-01-13 10:23:09 -0700
committerSean Griffin <sean@thoughtbot.com>2015-01-13 10:24:10 -0700
commit0b2e0528df36bcef4aca62b86f55e1ea85604cd8 (patch)
tree800e5fb48592f4b690a643f06120c538622bc039 /railties/lib
parent1302edf3e53a2322e3496588c0c06e7e882d3cc6 (diff)
downloadrails-0b2e0528df36bcef4aca62b86f55e1ea85604cd8.tar.gz
rails-0b2e0528df36bcef4aca62b86f55e1ea85604cd8.tar.bz2
rails-0b2e0528df36bcef4aca62b86f55e1ea85604cd8.zip
Add the `method_source` gem to the default Gemfile
Fixes #18473
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/Gemfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile
index 3659edcfcd..143673f711 100644
--- a/railties/lib/rails/generators/rails/app/templates/Gemfile
+++ b/railties/lib/rails/generators/rails/app/templates/Gemfile
@@ -36,6 +36,10 @@ group :development, :test do
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
<% end -%>
+
+ # Adds `Method#source` and `Method#comment` to get the source code of a
+ # method from the console
+ gem 'method_source'
<% end -%>
end