Showing 4 of 15 total issues
Method method_missing
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def method_missing(method, *args, &block)
unsupported_query_methods = %w(
create_with
eager_load
includes
Consider simplifying this complex logical expression. Open
Open
if relation
query_matches = scope.to_sql == relation.to_sql
eager_load_matches = scope.eager_load_values == relation.eager_load_values
includes_matches = scope.includes_values == relation.includes_values
lock_matches = scope.lock_value == relation.lock_value
Consider simplifying this complex logical expression. Open
Open
if relation
query_matches = scope.to_sql == relation.to_sql
eager_load_matches = scope.eager_load_values == relation.eager_load_values
includes_matches = scope.includes_values == relation.includes_values
lock_matches = scope.lock_value == relation.lock_value
Consider simplifying this complex logical expression. Open
Open
if index
name_matches = name.nil? || matches_name?(index, name)
unique_matches = unique.nil? || index.unique == unique
where_matches = where.nil? || index.where == where