jclem/detour

View on GitHub
lib/detour/acts_as_flaggable.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Method acts_as_flaggable has 78 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def acts_as_flaggable(options = {})
    Detour::Feature.class_eval <<-EOF
      has_one :#{table_name}_percentage_flag,
        class_name: "Detour::PercentageFlag",
        inverse_of: :feature,
Severity: Major
Found in lib/detour/acts_as_flaggable.rb - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status