assemblymade/meta

View on GitHub
app/models/product.rb

Summary

Maintainability
F
3 days
Test Coverage

Class Product has 112 methods (exceeds 20 allowed). Consider refactoring.
Open

class Product < ActiveRecord::Base
  include ActiveRecord::UUID
  include Kaminari::ActiveRecordModelExtension
  include Elasticsearch::Model
  include GlobalID::Identification
Severity: Major
Found in app/models/product.rb - About 2 days to fix

    File product.rb has 607 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    require 'money'
    require './lib/poster_image'
    require 'elasticsearch/model'
    
    class Product < ActiveRecord::Base
    Severity: Major
    Found in app/models/product.rb - About 1 day to fix

      There are no issues that match your filters.

      Category
      Status