lib/tasks/switchman.rake in switchman-1.2.18 vs lib/tasks/switchman.rake in switchman-1.2.19

- old
+ new

@@ -19,10 +19,10 @@ negative = true servers = servers[1..-1] end servers = servers.split(',') conditions = ["database_server_id #{ "NOT " if negative }IN (?)", servers] - conditions.first << " OR database_server_id IS NULL" if servers.include?(Rails.env) && !negative || !servers.include?(Rails.env) && negative + conditions.first << " OR database_server_id IS NULL" if servers.include?(::Rails.env) && !negative || !servers.include?(::Rails.env) && negative scope = scope.where(conditions) end if ENV['SHARD'] raw_shard_ids = ENV['SHARD'].split(',')