Class: GotFixed::User

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/got_fixed/user.rb

Instance Method Summary collapse

Instance Method Details

#send_notification(issue) ⇒ Object



19
20
21
22
23
24
25
# File 'app/models/got_fixed/user.rb', line 19

def send_notification(issue)
  if Module.const_defined?(:Resque) && Resque.respond_to?(:enqueue)
    Resque.enqueue(NotifyUserOfClosedIssueJob, self.id, issue.id)
  else
    NotifyUserOfClosedIssueJob.perform(self.id, issue.id)
  end
end