theodi/open-orgn-services

View on GitHub
lib/capsulecrm/send_opportunity_reminders.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method perform has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.perform
    
    # Get open opportunities from CapsuleCRM
    opportunities = CapsuleCRM::Opportunity.find_all.select{|x| !opportunity_closed?(x)}
    # Get list of old opportunities
Severity: Minor
Found in lib/capsulecrm/send_opportunity_reminders.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status