GordonDiggs/rayons

View on GitHub
app/models/item_discover_presenter.rb

Summary

Maintainability
A
0 mins
Test Coverage

Use the return of the conditional for variable assignment and comparison.
Open

      if %w[genre style].include?(field.to_s)
        q << Item.sanitize_sql_for_assignment(["? = ANY (#{field.to_s.pluralize})", value])
      else
        q << Item.sanitize_sql_for_assignment(field => value)
      end

There are no issues that match your filters.

Category
Status