fga-gpp-mds/2017.1-Escola-X

View on GitHub
app/helpers/school_misses_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module SchoolMissesHelper

    def give_fault_to_all_alumns(date)
        alumns = Alumn.all

        for alumn in alumns 
            SchoolMiss.create(alumn_id:alumn.id , date:date)
        end
    end
end