Guest User

Untitled

a guest
Dec 15th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. @m_plano_faixas = MPlanoFaixa.find(:all, :select => 'DISTINCT quantidade_links').each do |faixa|
  2. @m_contrato_plano = MContratoPlano.find(:all, :order => 'id desc', :joins => [:dispositivo_malware],
  3. :conditions => ['m_contratos_planos.created_at > ? and m_contratos_planos.created_at < ? and dispositivos_malware.quantidade_links = ?', @data.at_beginning_of_month, @data.at_end_of_month, faixa.quantidade_links])
  4. end
Add Comment
Please, Sign In to add comment