Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

Equipment Model Deactivation is Broken #1638

Closed
@esoterik

Description

@esoterik

Attempting to deactivate an equipment model currently gives the following error:

undefined method `equipmentmodels_requirements' for #EquipmentModel:0x005556a1f5dd70 Did you mean? equipment_model_equipment_items_url

...with the following related source:

    # Deactivate the model you had originally intended to deactivate
    @items_class2.destroy
    flash[:notice] = 'Successfully deactivated '\
                   + params[:controller].singularize.titleize\
                   + '. Any related equipment has been deactivated as well.'

The line throwing the exception is @items_class2.destroy.

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions