Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curate Generator Overwrites Files with Duplication Information #380

Open
nomadicoder opened this issue Dec 11, 2013 · 0 comments
Open

Curate Generator Overwrites Files with Duplication Information #380

nomadicoder opened this issue Dec 11, 2013 · 0 comments
Labels

Comments

@nomadicoder
Copy link
Contributor

If a user creates a curate_app and is stored in a git repository. When the user installs that application and runs:

$ rails generate curate

generator overwrites app/controllers/application_controller.rb with a second "include Blacklight::Controller" and overwrites config/routes.rb with duplicate "root 'catalog#index'" and 'curate_for'.

Generator should either check if statements or routes already exist or ask user permission to overwrite existing application_controller.rb and config/routes.rb.

Generator will overwrite files using --skip option:

$ rails generate curate --skip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant