mattways/pageable

View on GitHub
lib/pagers/extensions/active_record/base.rb

Summary

Maintainability
A
1 hr
Test Coverage

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

          def inherited(subclass)
            subclass.class_eval do
              if superclass == ::ActiveRecord::Base
                scope :page, ->(number, options={}) {
                  padding = (options[:padding] || Pagers.configuration.padding)
Severity: Minor
Found in lib/pagers/extensions/active_record/base.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status