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

Wiki: ActiveJob - NotImplementedError #1302

Closed
sepastian opened this issue May 15, 2015 · 3 comments
Closed

Wiki: ActiveJob - NotImplementedError #1302

sepastian opened this issue May 15, 2015 · 3 comments

Comments

@sepastian
Copy link

When implementing perform as a class method as described on Resque's Wiki page for ActiveJob, a NotImplementedError occurs, because ActiveJob cannot find JobClass#perform.

After removing self in front of perform, the error is gone.

class Archive < ActiveJob::Base
  queue_as :default

  def perform(repo_id, branch = 'master')
    repo = Repository.find(repo_id)
    repo.create_archive(branch)
  end
end
@mcfiredrill
Copy link
Contributor

Thank you for your issue.
Looks like the wiki has been fixed since then. Closing this.

@akshaysharma096
Copy link

You have not changed the wiki page, please change it ASAP, it is causing a lot of confusion.

@corincerami
Copy link
Member

@akshaysharma096 first, the Wiki was indeed updated here. Second, I don't think any open source contributors appreciate demands being made. If you have an issue, we are happy to help when able, but we are not your paid employees, we are volunteers trying to help the open source community. Try to be more polite next time you raise an issue.

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

No branches or pull requests

4 participants