artirix/browsercms

View on GitHub
app/models/cms/portlet.rb

Summary

Maintainability
B
4 hrs
Test Coverage

Class Portlet has 27 methods (exceeds 20 allowed). Consider refactoring.
Open

  class Portlet < ActiveRecord::Base
    validates_presence_of :name
    is_searchable
    uses_soft_delete
    has_content_type :module => :core
Severity: Minor
Found in app/models/cms/portlet.rb - About 3 hrs to fix

    Method inherited has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def self.inherited(subclass)
          super if defined? super
        ensure
          subclass.class_eval do
            extend Cms::PolymorphicSingleTableInheritance
    Severity: Minor
    Found in app/models/cms/portlet.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status