theodi/open-orgn-services

View on GitHub
lib/capsulecrm/partner_enquiry_processor.rb

Summary

Maintainability
A
2 hrs
Test Coverage

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

  def self.perform(person, product, comment)
    # Create organisation in CapsuleCRM
    organisation = CapsuleCRM::Organisation.find_all(:q => person['affiliation']).first
    if organisation.nil?
      organisation = CapsuleCRM::Organisation.new(:name => person['affiliation'])
Severity: Minor
Found in lib/capsulecrm/partner_enquiry_processor.rb - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status