Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @m_plano_faixas = MPlanoFaixa.find(:all, :select => 'DISTINCT quantidade_links').each do |faixa|
- @m_contrato_plano = MContratoPlano.find(:all, :order => 'id desc', :joins => [:dispositivo_malware],
- :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])
- end
Add Comment
Please, Sign In to add comment