artirix/browsercms

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

Summary

Maintainability
A
3 hrs
Test Coverage

Class Section has 29 methods (exceeds 20 allowed). Consider refactoring.
Open

  class Section < ActiveRecord::Base
    flush_cache_on_change

    is_addressable no_dynamic_path: true, destroy_if: :deletable?
    # Cannot use dependent => :destroy to do this. Ancestry's callbacks trigger before the before_destroy callback.
Severity: Minor
Found in app/models/cms/section.rb - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status