Skip to content

State already defined  #360

Description

@bidva

I have a model which contains 3 different state columns (state, background_check_status,permit_status)
background_check_status,permit_status has defined the same states (Submitted, Rejected, Accepted, Pending) now on running my tests I get this warning

State "Submitted" for :chauffeur_permit_status is already defined in :background_check_status
State "Rejected" for :chauffeur_permit_status is already defined in :background_check_status
State "Accepted" for :chauffeur_permit_status is already defined in :background_check_status
State "Pending" for :chauffeur_permit_status is already defined in :background_check_status

how can I turn this off?

Activity

  1. bidva commented on Oct 29, 2018

    @bidva
    Author

    Sorry to bug @obrie, Do you have any Idea about this warning message?

  2. rocket-turtle commented on Nov 1, 2018

    @rocket-turtle

    Have you defined a namespace on your permit_status state_machine?

  3. bidva commented on Nov 2, 2018

    @bidva
    Author

    @rocket-turtle no, I didn't. Basically, in my model, I have a couple of fields have stated and all are in the same class model.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions