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

Modernize the active_support requires #837

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Burgestrand
Copy link
Member

We were kind of doing it wrong, and it worked in tests by accident because we required railties and actionpack.

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 ❤️

@Burgestrand Burgestrand force-pushed the kbs/modernize-active_support-require branch 2 times, most recently from ddc4550 to d232396 Compare October 11, 2024 07:38
@Burgestrand Burgestrand force-pushed the kbs/code-janitoring branch 2 times, most recently from ba324e4 to e296e83 Compare October 11, 2024 07:57
@Burgestrand Burgestrand force-pushed the kbs/modernize-active_support-require branch from d232396 to c00d2e7 Compare October 11, 2024 08:04
> In order to have the smallest default footprint possible, Active Support loads the minimum dependencies by default. It is broken in small pieces so that only the desired extensions can be loaded.

https://guides.rubyonrails.org/active_support_core_extensions.html#stand-alone-active-support

This was changed in Rails 3, released 2010-08-29.

- We're not using anything from `core_ext/module/introspection`
- We're not using blank or present from `core_ext/object/blank`
- We're not using `autoload`
@Burgestrand Burgestrand force-pushed the kbs/modernize-active_support-require branch from c00d2e7 to 56e73a8 Compare October 11, 2024 08:11
@Burgestrand Burgestrand self-assigned this Oct 11, 2024
Base automatically changed from kbs/code-janitoring to main October 11, 2024 08:42
@Burgestrand Burgestrand marked this pull request as ready for review October 11, 2024 08:43
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