search for: staff_with_missing_shirt_sizes

Displaying 1 result from an estimated 1 matches for "staff_with_missing_shirt_sizes".

2014 Feb 11
0
Cucumber test question
...il notification$/) do pending # express the regexp above with the code you wish you had end Model: class StaffInfo < ActiveRecord::Base belongs_to :person scope :empty_shirt_fields, -> { where('shirt_size in (?)', [nil, '']) } def self.check_empty_shirt_fields staff_with_missing_shirt_sizes = StaffInfo.empty_shirt_fields debugger send_empty_shirt_size_notification staff_with_missing_shirt_sizes if staff_with_missing_shirt_sizes.size > 0 end def send_empty_shirt_size_notification(staff_records) Mailer.missing_shirt_size(staff_records).deliver end end What is...