Skip to content

Curate Generator Overwrites Files with Duplication Information #380

@nomadicoder

Description

@nomadicoder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions