app/controllers/groups_controller.rb
# Check if all required columns are present and returns the one that aren't
Check if all required columns are present and returns the one that aren't
Check if all required columns are present and returns the one that aren ' t
def validate_mandatory_columns(headers)
      not_found_columns = []
      @mandatory_columns.each do |label|
        if !headers.include? label
          not_found_columns << label
        end
      end
      not_found_columns
    end
def validate_mandatory_columns ( headers ) not_found_columns = [ ] @mandatory_columns . each do | label | if ! headers . include? label not_found_columns << label end end not_found_columns end
Check if all required columns are present and returns the one that aren't
Check if all required columns are present and returns the one that aren ' t
headers
<not_specific>