Created
May 26, 2019 22:25
-
-
Save Kamilahsantos/7236ceaa441a6c9c44d1d5c51471831f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Clientes | |
def self.clientes_para_inativar | |
Clientes.all.select do |cliente| | |
cliente.ultima_compra > 1.month.ago && cliente.ativo? | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment