diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-08-11 17:44:21 -0400 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-08-11 17:44:21 -0400 |
commit | 701ab978e5967d832a1688f0c7308e7987596cbc (patch) | |
tree | bbffcbcf83e6a4917ebc3ea96eee7a2d4eb1ffea /railties/lib/rails | |
parent | 3090f8f0975bfcc7d0aeba178818091e482423d9 (diff) | |
parent | 59f93bbce79407c64636280dc9dfe1170f8b5078 (diff) | |
download | rails-701ab978e5967d832a1688f0c7308e7987596cbc.tar.gz rails-701ab978e5967d832a1688f0c7308e7987596cbc.tar.bz2 rails-701ab978e5967d832a1688f0c7308e7987596cbc.zip |
Merge pull request #30110 from yhirano55/add_git_source
Add git_source to Gemfile for plugin generator
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/plugin/templates/Gemfile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/plugin/templates/Gemfile b/railties/lib/rails/generators/rails/plugin/templates/Gemfile index 22a4548ff2..290259b4db 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/Gemfile +++ b/railties/lib/rails/generators/rails/plugin/templates/Gemfile @@ -1,4 +1,5 @@ source 'https://rubygems.org' +git_source(:github) { |repo| "https://github.com/#{repo}.git" } <% if options[:skip_gemspec] -%> <%= '# ' if options.dev? || options.edge? -%>gem 'rails', '<%= Array(rails_version_specifier).join("', '") %>' |