LTe/acts-as-messageable

View on GitHub
lib/acts_as_messageable/scopes.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method initialize_scopes has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def initialize_scopes(search_scope)
        scope :are_from, lambda { |*args|
          where(sent_messageable_id: args.first, sent_messageable_type: args.first.class.name)
        }
        scope :are_to, lambda { |*args|
Severity: Minor
Found in lib/acts_as_messageable/scopes.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status