Fixes #822 - Namespaced scopes perform incorrect queries by kranzky · Pull Request #823 · aasm/aasm · GitHub
Skip to content

Fixes #822 - Namespaced scopes perform incorrect queries#823

Open
kranzky wants to merge 1 commit into
aasm:masterfrom
kranzky:fix-namespaced-scopes
Open

Fixes #822 - Namespaced scopes perform incorrect queries#823
kranzky wants to merge 1 commit into
aasm:masterfrom
kranzky:fix-namespaced-scopes

Conversation

@kranzky

@kranzky kranzky commented May 15, 2023

Copy link
Copy Markdown

Namespaced scopes were prepending the namespace to the state name when performing the query. This is wrong. The fix is to pass the scope name and the state name as separate arguments to aasm_create_scope.

Namespaced scopes were prepending the namespace to the state name when
performing the query. This is wrong. The fix is to pass the scope name
and the state name as separate arguments to `aasm_create_scope`.
@qlty-cloud-legacy

Copy link
Copy Markdown

@ccartano

Copy link
Copy Markdown

Running into the same issue -- interesting that the namespaced scopes does this since the scope then doesnt work at all. Would love to see this added in or if theres a natural solution for it would be helpful!

@vad4msiu

Copy link
Copy Markdown

👍
Could we merge it?

@rafaelsales

Copy link
Copy Markdown

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.

4 participants