app/models/events/event_staff_position.rb
# Signs up a person for this position. If there are multiple shifts, signs them up for all of them.
Signs up a person for this position. If there are multiple shifts, signs them up for all of them.
Signs up a person for this position . If there are multiple shifts signs them up for all of them .
def signup!(person)
    new_shifts = shifts.collect{|shift| shift.signup!(person)}
    new_shifts.each{|shift| shift.delete } if new_shifts.collect(&:valid?).include?(false)
    new_shifts
  end
def signup! ( person ) new_shifts = shifts . collect { | shift | shift . signup! ( person ) } new_shifts . each { | shift | shift . delete } if new_shifts . collect ( & :valid? ) . include? ( false ) new_shifts end
Signs up a person for this position.
Signs up a person for this position .
person