activemodel/lib/active_model/attribute.rb

Summary

Maintainability
B
4 hrs
Test Coverage

Class Attribute has 30 methods (exceeds 20 allowed). Consider refactoring.
Open

  class Attribute # :nodoc:
    class << self
      def from_database(name, value_before_type_cast, type, value = nil)
        FromDatabase.new(name, value_before_type_cast, type, nil, value)
      end
Severity: Minor
Found in activemodel/lib/active_model/attribute.rb - About 3 hrs to fix

    Method initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def initialize(name, value_before_type_cast, type, original_attribute = nil, value = nil)
    Severity: Minor
    Found in activemodel/lib/active_model/attribute.rb - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status