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

It should be possible to use ActiveSupport::DescendantTracker without ActiveSupport::Dependencies #223

Closed
wants to merge 1 commit into from

Conversation

rolftimmermans
Copy link

Currently, ActiveSupport::DescendantTracker depends on ActiveSupport::Dependencies. That does not really make sense, since it is only used in the clear method.

AS::Callbacks depends on AS::DescendantTracker, but never calls the clear method. It should be possible to use AS::Callbacks without getting AS::Dependencies for free. Especially since AS::Dependencies overrides a few Ruby core methods.

This patch checks for the presence of AS::Dependencies when clearing the DescendantTracker and removes the explicit dependency.

… getting ActiveSupport::Dependencies for free.
@josevalim
Copy link
Contributor

Looks good to me.

@josevalim
Copy link
Contributor

Applied.

This pull request was closed.
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.

None yet

2 participants