lib/clockwork/database_events/event.rb in clockwork-1.0.0 vs lib/clockwork/database_events/event.rb in clockwork-1.0.2
- old
+ new
@@ -24,10 +24,10 @@
name_has_changed?(model) || frequency_has_changed?(model)
end
private
def name_has_changed?(model)
- !job.respond_to?(:name) || job.name != model.name
+ job.respond_to?(:name) && job.name != model.name
end
def frequency_has_changed?(model)
@period != model.frequency
end
\ No newline at end of file