Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
Fixed split and merge method checking for 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
uiltondutra committed Oct 24, 2009
1 parent 069f558 commit f41618e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cloud_crowd/models/job.rb
Expand Up @@ -100,7 +100,7 @@ def any_work_units_failed?

# This job is splittable if its Action has a +split+ method.
def splittable?
self.action_class.public_instance_methods.include? 'split'
self.action_class.public_instance_methods.include?(:split)
end

# This job is done splitting if it's finished with its splitting work units.
Expand All @@ -110,7 +110,7 @@ def done_splitting?

# This job is mergeable if its Action has a +merge+ method.
def mergeable?
self.processing? && self.action_class.public_instance_methods.include?('merge')
self.processing? && self.action_class.public_instance_methods.include?(:merge)
end

# Retrieve the class for this Job's Action.
Expand Down

0 comments on commit f41618e

Please sign in to comment.