##// END OF EJS Templates
Avoid a ruby warning....
Jean-Philippe Lang -
r3078:03b57415d66e
parent child
Show More
@@ -55,7 +55,7 class Workflow < ActiveRecord::Base
55 # Copies workflows from source to targets
55 # Copies workflows from source to targets
56 def self.copy(source_tracker, source_role, target_trackers, target_roles)
56 def self.copy(source_tracker, source_role, target_trackers, target_roles)
57 unless source_tracker.is_a?(Tracker) || source_role.is_a?(Role)
57 unless source_tracker.is_a?(Tracker) || source_role.is_a?(Role)
58 raise ArgumentError.new "source_tracker or source_role must be specified"
58 raise ArgumentError.new("source_tracker or source_role must be specified")
59 end
59 end
60
60
61 target_trackers = [target_trackers].flatten.compact
61 target_trackers = [target_trackers].flatten.compact
General Comments 0
You need to be logged in to leave comments. Login now