Skip to content
Browse files

Fix --dev option

  • Loading branch information...
1 parent 17f0539 commit 952e449fc0b9adce240df6197a189d179f5e5b7f Carlhuda committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 railties/lib/rails/generators/rails/app/templates/Gemfile
View
3 railties/lib/rails/generators/rails/app/templates/Gemfile
@@ -5,7 +5,8 @@ gem "rails", "<%= Rails::VERSION::STRING %>"
## Bundle edge rails:
<%- if options.dev? -%>
-gem "rails", :path => "<%= Rails::Generators::RAILS_DEV_PATH %>"
+directory "<%= Rails::Generators::RAILS_DEV_PATH %>", :glob => "{*/,}*.gemspec"
+gem "rails", "<%= Rails::VERSION::STRING %>"
<%- else -%>
<%= "# " unless options.edge? %>gem "rails", :git => "git://github.com/rails/rails.git"
<%- end -%>

0 comments on commit 952e449

Please sign in to comment.
Something went wrong with that request. Please try again.