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

Fix loading of Punditize #1394

Merged
merged 1 commit into from
Aug 9, 2019
Merged

Fix loading of Punditize #1394

merged 1 commit into from
Aug 9, 2019

Conversation

purinkle
Copy link
Contributor

@purinkle purinkle commented Aug 2, 2019

We were only defining the Punditize module if we had already defined Pundit. Setting Punditize like this broke autoloading in Rails when Pundit was not specified. We fixed the problem by always setting Punditize but keeping it empty if Pundit does not exist.

#1339

Copy link
Collaborator

@pablobm pablobm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's some tricky spec well resolved there 👍

We were only defining the `Punditize` module if we had already defined
`Pundit`. Setting `Punditize` like this broke autoloading in Rails when
`Pundit` was not specified. We fixed the problem by always setting
`Punditize` but keeping it empty if` Pundit` does not exist.

#1339
@purinkle purinkle force-pushed the fix-punditize-loading branch from 1596651 to df9fb3c Compare August 9, 2019 09:09
@purinkle purinkle closed this Aug 9, 2019
@purinkle purinkle deleted the fix-punditize-loading branch August 9, 2019 09:46
@purinkle purinkle merged commit df9fb3c into master Aug 9, 2019
@nickcharlton nickcharlton temporarily deployed to administrate-demo-prerelease August 9, 2019 09:56 Inactive
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