• M
    Make inherited scope test fail · 3c4aa73c
    Matt Todd 提交于
    This triggers the JoinDependency work to reflect on the associations
    and trigger an error as follows:
    
      ActiveRecord::ConfigurationError: Association named 'account' was
      not found on Company; perhaps you misspelled it?
    
    Fix Company.of_first_firm joins association name
    
    Should be `Company.joins(:accounts)` not `Company.joins(:account)`.
    
    Do the same for Client.of_first_firm
    3c4aa73c
inheritance_test.rb 13.3 KB