Skip to content

Conversation

@dazza-codes
Copy link

@dazza-codes dazza-codes commented May 25, 2017

Essentially, this is supposed to add the --skip-git option to rails new. But it allows a config override. (I didn't find any specs that test this, so I'm relying on the integration specs.)

# Using the Rails generator directly, instead of shelling out, to
# ensure we use the right version of Rails.
Rails::Generators::AppGenerator.start(['internal', '--skip_spring', EngineCart.rails_options, ("-m #{EngineCart.template}" if EngineCart.template)].compact)
Rails::Generators::AppGenerator.start(['internal', EngineCart.rails_options, ("-m #{EngineCart.template}" if EngineCart.template)].compact)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the splat operator here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants