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

Add inline_reasons option to allowed_to? #187

Merged
merged 2 commits into from
Sep 2, 2021
Merged

Conversation

palkan
Copy link
Owner

@palkan palkan commented Sep 2, 2021

What is the purpose of this pull request?

Closes #186

What changes did you make? (overview)

Added allowed_to?(:rule, obj, inline_reasons: true) to merge reasons into the current reasons set.

Is there anything you'd like reviewers to focus on?

PR checklist:

  • Tests included
  • Documentation updated
  • Changelog entry added

@brendon
Copy link
Contributor

brendon commented Sep 2, 2021

Looks good to me! Can't wait to try it out :)

@palkan palkan merged commit 4e7cd6d into master Sep 2, 2021
@palkan palkan deleted the feat/inline-reasons branch September 2, 2021 10:31
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.

Accessing a reason from a nested allowed_to?
2 participants