Skip to content

Comments

Fix error raised when requiring pundit/rspec before active support#857

Merged
Burgestrand merged 2 commits intomainfrom
kbs/janitor
May 6, 2025
Merged

Fix error raised when requiring pundit/rspec before active support#857
Burgestrand merged 2 commits intomainfrom
kbs/janitor

Conversation

@Burgestrand
Copy link
Member

Fix regression from #837

To do

  • I have read the contributing guidelines.
  • I have added relevant tests.
  • I have adjusted relevant documentation.
  • I have made sure the individual commits are meaningful.
  • I have added relevant lines to the CHANGELOG.

PS: Thank you for contributing to Pundit ❤️

Regression from #837.

See #837 (comment)

In brief, this happens if you require `pundit/rspec` before `active_support`, since `pundit/rspec` will require in array conversions.

Additionally this will make sure all of Pundit is required alongside `pundit/rspec`, which I believe generally makes sense since you want Pundit in order to be able to test Pundit.
@Burgestrand Burgestrand marked this pull request as ready for review May 6, 2025 07:37
@Burgestrand Burgestrand merged commit f5095b4 into main May 6, 2025
14 checks passed
@Burgestrand Burgestrand deleted the kbs/janitor branch May 6, 2025 07:37
@Burgestrand
Copy link
Member Author

Fixed #856

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.

1 participant