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

don't include ClassMethods with MessageSending #924

Merged
merged 1 commit into from
Mar 31, 2017

Conversation

Kache
Copy link

@Kache Kache commented Jun 22, 2016

moves Delayed::ClassMethods out of Delayed::MessageSending because
lib/delayed_job.rb includes Delayed::MessageSending into Object, and
that has the side-effect of defining ClassMethods in every Object


I discovered this issue when finding out that rails wouldn't autoload a file named class_methods.rb in a different project. This bug defines ClassMethods for every Object, which prevents rails' autoloader from triggering and requireing respectively named files.

moves Delayed::ClassMethods out of Delayed::MessageSending because
lib/delayed_job.rb includes Delayed::MessageSending into Object, and
that has the side-effect of defining ClassMethods in EVERY object
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 90.678% when pulling 3c4d91c on Kache:master into e3772d4 on collectiveidea:master.

@coveralls
Copy link

coveralls commented Jun 22, 2016

Coverage Status

Coverage remained the same at 91.127% when pulling 3c4d91c on Kache:master into e3772d4 on collectiveidea:master.

else
val.call
end
module ClassMethods
Copy link
Author

@Kache Kache Jun 22, 2016

Choose a reason for hiding this comment

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

Should ClassMethods be moved elsewhere altogether?

@albus522 albus522 merged commit d694978 into collectiveidea:master Mar 31, 2017
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

3 participants