lib/souls/generate/resolver.rb in souls-0.21.2 vs lib/souls/generate/resolver.rb in souls-0.21.3

- old
+ new

@@ -123,14 +123,11 @@ file_path = "./app/graphql/resolvers/#{class_name.singularize}_search.rb" File.open(file_path, "a") do |f| f.write <<~EOS scope = scope.where("created_at >= ?", value[:start_date]) if value[:start_date] scope = scope.where("created_at <= ?", value[:end_date]) if value[:end_date] - #{' '} branches << scope - #{' '} value[:OR].inject(branches) { |s, v| normalize_filters(v, s) } if value[:OR].present? - #{' '} branches end end end EOS