lib/eco/api/microcases/set_supervisor.rb in eco-helpers-2.6.3 vs lib/eco/api/microcases/set_supervisor.rb in eco-helpers-2.6.4
- old
+ new
@@ -36,19 +36,16 @@
private
def descrease_subordinates(person, by = 1)
if person.is_a?(Ecoportal::API::V1::Person)
person.subordinates -= by
- #person.subordinates = 0 if person.subordinates < 0
end
end
def increase_subordinates(person, by = 1)
if person.is_a?(Ecoportal::API::V1::Person)
- #person.subordinates = 0 if person.subordinates < 0
person.subordinates += by
end
end
-
end
end
end