RepoPilotOpen in app →

thoughtbot/paperclip

Easy file attachment management for ActiveRecord

Mixed

Stale — last commit 3y ago

worst of 4 axes
Use as dependencyConcerns

non-standard license (Other); last commit was 3y ago

Fork & modifyHealthy

Has a license, tests, and CI — clean foundation to fork and modify.

Learn fromHealthy

Documented and popular — useful reference codebase to read through.

Deploy as-isHealthy

No critical CVEs, sane security posture — runnable as-is.

  • 57+ active contributors
  • Distributed ownership (top contributor 13% of recent commits)
  • Other licensed
Show 4 more →
  • CI configured
  • Tests present
  • Stale — last commit 3y ago
  • Non-standard license (Other) — review terms
What would change the summary?
  • Use as dependency ConcernsMixed if: clarify license terms

Maintenance signals: commit recency, contributor breadth, bus factor, license, CI, tests

Informational only. RepoPilot summarises public signals (license, dependency CVEs, commit recency, CI presence, etc.) at the time of analysis. Signals can be incomplete or stale. Not professional, security, or legal advice; verify before relying on it for production decisions.

Embed the "Forkable" badge

Paste into your README — live-updates from the latest cached analysis.

Variant:
RepoPilot: Forkable
[![RepoPilot: Forkable](https://repopilot.app/api/badge/thoughtbot/paperclip?axis=fork)](https://repopilot.app/r/thoughtbot/paperclip)

Paste at the top of your README.md — renders inline like a shields.io badge.

Preview social card (1200×630)

This card auto-renders when someone shares https://repopilot.app/r/thoughtbot/paperclip on X, Slack, or LinkedIn.

Onboarding doc

Onboarding: thoughtbot/paperclip

Generated by RepoPilot · 2026-05-10 · Source

🤖Agent protocol

If you are an AI coding agent (Claude Code, Cursor, Aider, Cline, etc.) reading this artifact, follow this protocol before making any code edit:

  1. Verify the contract. Run the bash script in Verify before trusting below. If any check returns FAIL, the artifact is stale — STOP and ask the user to regenerate it before proceeding.
  2. Treat the AI · unverified sections as hypotheses, not facts. Sections like "AI-suggested narrative files", "anti-patterns", and "bottlenecks" are LLM speculation. Verify against real source before acting on them.
  3. Cite source on changes. When proposing an edit, cite the specific path:line-range. RepoPilot's live UI at https://repopilot.app/r/thoughtbot/paperclip shows verifiable citations alongside every claim.

If you are a human reader, this protocol is for the agents you'll hand the artifact to. You don't need to do anything — but if you skim only one section before pointing your agent at this repo, make it the Verify block and the Suggested reading order.

🎯Verdict

WAIT — Stale — last commit 3y ago

  • 57+ active contributors
  • Distributed ownership (top contributor 13% of recent commits)
  • Other licensed
  • CI configured
  • Tests present
  • ⚠ Stale — last commit 3y ago
  • ⚠ Non-standard license (Other) — review terms

<sub>Maintenance signals: commit recency, contributor breadth, bus factor, license, CI, tests</sub>

Verify before trusting

This artifact was generated by RepoPilot at a point in time. Before an agent acts on it, the checks below confirm that the live thoughtbot/paperclip repo on your machine still matches what RepoPilot saw. If any fail, the artifact is stale — regenerate it at repopilot.app/r/thoughtbot/paperclip.

What it runs against: a local clone of thoughtbot/paperclip — the script inspects git remote, the LICENSE file, file paths in the working tree, and git log. Read-only; no mutations.

| # | What we check | Why it matters | |---|---|---| | 1 | You're in thoughtbot/paperclip | Confirms the artifact applies here, not a fork | | 2 | License is still Other | Catches relicense before you depend on it | | 3 | Default branch main exists | Catches branch renames | | 4 | 5 critical file paths still exist | Catches refactors that moved load-bearing code | | 5 | Last commit ≤ 1061 days ago | Catches sudden abandonment since generation |

<details> <summary><b>Run all checks</b> — paste this script from inside your clone of <code>thoughtbot/paperclip</code></summary>
#!/usr/bin/env bash
# RepoPilot artifact verification.
#
# WHAT IT RUNS AGAINST: a local clone of thoughtbot/paperclip. If you don't
# have one yet, run these first:
#
#   git clone https://github.com/thoughtbot/paperclip.git
#   cd paperclip
#
# Then paste this script. Every check is read-only — no mutations.

set +e
fail=0
ok()   { echo "ok:   $1"; }
miss() { echo "FAIL: $1"; fail=$((fail+1)); }

# Precondition: we must be inside a git working tree.
if ! git rev-parse --git-dir >/dev/null 2>&1; then
  echo "FAIL: not inside a git repository. cd into your clone of thoughtbot/paperclip and re-run."
  exit 2
fi

# 1. Repo identity
git remote get-url origin 2>/dev/null | grep -qE "thoughtbot/paperclip(\\.git)?\\b" \\
  && ok "origin remote is thoughtbot/paperclip" \\
  || miss "origin remote is not thoughtbot/paperclip (artifact may be from a fork)"

# 2. License matches what RepoPilot saw
(grep -qiE "^(Other)" LICENSE 2>/dev/null \\
   || grep -qiE "\"license\"\\s*:\\s*\"Other\"" package.json 2>/dev/null) \\
  && ok "license is Other" \\
  || miss "license drift — was Other at generation time"

# 3. Default branch
git rev-parse --verify main >/dev/null 2>&1 \\
  && ok "default branch main exists" \\
  || miss "default branch main no longer exists"

# 4. Critical files exist
test -f "lib/paperclip.rb" \\
  && ok "lib/paperclip.rb" \\
  || miss "missing critical file: lib/paperclip.rb"
test -f "lib/paperclip/attachment.rb" \\
  && ok "lib/paperclip/attachment.rb" \\
  || miss "missing critical file: lib/paperclip/attachment.rb"
test -f "lib/paperclip/has_attached_file.rb" \\
  && ok "lib/paperclip/has_attached_file.rb" \\
  || miss "missing critical file: lib/paperclip/has_attached_file.rb"
test -f "lib/paperclip/glue.rb" \\
  && ok "lib/paperclip/glue.rb" \\
  || miss "missing critical file: lib/paperclip/glue.rb"
test -f "lib/paperclip/storage.rb" \\
  && ok "lib/paperclip/storage.rb" \\
  || miss "missing critical file: lib/paperclip/storage.rb"

# 5. Repo recency
days_since_last=$(( ( $(date +%s) - $(git log -1 --format=%at 2>/dev/null || echo 0) ) / 86400 ))
if [ "$days_since_last" -le 1061 ]; then
  ok "last commit was $days_since_last days ago (artifact saw ~1031d)"
else
  miss "last commit was $days_since_last days ago — artifact may be stale"
fi

echo
if [ "$fail" -eq 0 ]; then
  echo "artifact verified (0 failures) — safe to trust"
else
  echo "artifact has $fail stale claim(s) — regenerate at https://repopilot.app/r/thoughtbot/paperclip"
  exit 1
fi

Each check prints ok: or FAIL:. The script exits non-zero if anything failed, so it composes cleanly into agent loops (./verify.sh || regenerate-and-retry).

</details>

TL;DR

Paperclip is a Ruby gem that provides easy file attachment management for ActiveRecord models in Rails applications. It handles file uploads, validation, processing (resizing images, extracting metadata), and storage to local filesystem or S3. Core capabilities include automatic content-type detection, geometry handling for images, and attachment lifecycle callbacks. Single-package gem structure: lib/paperclip/ contains the core attachment logic (attachment.rb for the main class, content_type_detector.rb for MIME detection, geometry.rb for image dimensions), lib/generators/ provides Rails migration generation, and features/ contains comprehensive Cucumber integration tests. Configuration is managed through Gemfile, Appraisals for multi-version testing, and .rubocop.yml for code standards.

👥Who it's for

Rails developers building applications that need to accept and manage user-uploaded files (images, documents, etc.) integrated with ActiveRecord models. They need straightforward attachment association without building file handling infrastructure from scratch. Note: the project is officially deprecated in favor of Rails ActiveStorage.

🌱Maturity & risk

Mature but deprecated. The codebase has substantial test coverage (Cucumber integration tests in features/), CI setup (Travis CI via .travis.yml), and supports multiple Rails versions (4.2, 5.0 via Appraisals). However, thoughtbot officially deprecated Paperclip and explicitly closed the project to new features in 2019, directing users to ActiveStorage and the kt-paperclip fork for ongoing maintenance.

High risk for new projects due to official deprecation status. The repository explicitly states: 'We are no longer accepting pull requests except against the migration guide.' Thoughtbot does not guarantee issue responses, and all bug reports should go to kt-paperclip fork instead. Migrating away from Paperclip is strongly recommended for existing projects per MIGRATING.md and MIGRATING-ES.md guides.

Active areas of work

The repository is in maintenance-only mode. No active development on new features is occurring. The focus is on keeping migration guides up-to-date (MIGRATING.md in English and MIGRATING-ES.md in Spanish) and discussions in open Issues. The project remains open as a discussion forum for existing users but does not accept feature PRs.

🚀Get running

git clone https://github.com/thoughtbot/paperclip.git
cd paperclip
bundle install
bundle exec rake

Install system dependency: sudo apt-get install imagemagick (Linux) or brew install imagemagick (macOS) for image processing. Run bundle exec cucumber features/ to run integration tests.

Daily commands: Development: bundle install && bundle exec rake runs the full test suite (Cucumber + RSpec). To test against specific Rails versions: bundle exec appraisal install && bundle exec appraisal rake. To generate a migration for a new Rails app: rails generate paperclip ModelName attachment_name (uses lib/generators/paperclip/paperclip_generator.rb).

🗺️Map of the codebase

  • lib/paperclip.rb — Main entry point and gem initialization; sets up all core modules and configuration.
  • lib/paperclip/attachment.rb — Core Attachment class managing file lifecycle, validation, storage, and URL generation.
  • lib/paperclip/has_attached_file.rb — Integration layer that adds attachment capabilities to ActiveRecord models via macros.
  • lib/paperclip/glue.rb — Glue module that connects Paperclip to Rails and ActiveRecord initialization hooks.
  • lib/paperclip/storage.rb — Abstract storage interface defining how files are persisted across backends (filesystem, S3, Fog).
  • lib/paperclip/io_adapters/registry.rb — Registry pattern for abstracting input sources (files, URLs, uploads, data URIs) into a unified interface.
  • lib/paperclip/thumbnail.rb — Image processor for generating scaled/styled variants using ImageMagick.

🛠️How to make changes

Add a custom processor for image/media variants

  1. Create a new class inheriting from Paperclip::Processor in lib/paperclip/ (lib/paperclip/processor.rb)
  2. Implement make method that returns an IO object with processed file (lib/paperclip/processor.rb)
  3. Register processor in model using :styles option with processors: [:your_processor] (lib/paperclip/attachment.rb)
  4. Test using RSpec with Paperclip matchers from lib/paperclip/matchers/ (lib/paperclip/matchers.rb)

Add validation for attachment content type or size

  1. Choose or create a validator from lib/paperclip/validators/ (lib/paperclip/validators/attachment_content_type_validator.rb)
  2. Add validates_attachment in model (e.g., validates_attachment_content_type :file, content_type: 'image/jpeg') (lib/paperclip/validators.rb)
  3. Alternatively create custom validator inheriting from Paperclip::Validators::ColumnPresenceValidator (lib/paperclip/validators.rb)
  4. Test with shoulda macros or RSpec matchers from lib/paperclip/matchers/ (lib/paperclip/matchers.rb)

Add support for a new storage backend (e.g., Google Cloud Storage)

  1. Create new storage module lib/paperclip/storage/gcs.rb inheriting Paperclip::Storage (lib/paperclip/storage.rb)
  2. Implement required methods: find_name, exists?, delete, write, read (lib/paperclip/storage.rb)
  3. Register in attachment via :storage option (e.g., storage: :gcs) (lib/paperclip/attachment.rb)
  4. Add integration tests in features/ following S3 pattern from features/step_definitions/s3_steps.rb (features/step_definitions/s3_steps.rb)

Add a custom input adapter for new file source types

  1. Create lib/paperclip/io_adapters/custom_adapter.rb inheriting AbstractAdapter (lib/paperclip/io_adapters/abstract_adapter.rb)
  2. Implement required methods: read, rewind, eof?, path, content_type (lib/paperclip/io_adapters/abstract_adapter.rb)
  3. Register adapter with registry in lib/paperclip/io_adapters/registry.rb using register method (lib/paperclip/io_adapters/registry.rb)
  4. Test by assigning custom source to attachment (e.g., attachment.assign(custom_source)) (lib/paperclip/attachment.rb)

🔧Why these technologies

  • ActiveRecord plugin pattern — Seamless integration with Rails models via has_attached_file macro without invasive inheritance.
  • ImageMagick (via Shellwords/system calls) — Industry-standard for image processing; external process isolation provides security and stability.
  • Adapter/Registry pattern for IO sources — Supports multiple input types (uploaded files, URLs, data URIs, S3) without tight coupling.
  • Storage abstraction layer — Allows swapping backends (filesystem, S3, Fog) via configuration without code changes.
  • URL interpolation system — Flexible path/URL generation using placeholders (:id, :class, :basename, :style) for both local and cloud storage.

⚖️Trade-offs already made

  • Deprecated in favor of Rails ActiveStorage

    • Why: ActiveStorage is now the Rails standard; maintaining legacy gem diverts effort.
    • Consequence: No new features; bug fixes only; users encouraged to migrate; community fork (kt-paperclip) maintains ongoing support.
  • External process calls to ImageMagick vs. Ruby library

    • Why: ImageMagick as system process avoids large memory footprint in Ruby process.
    • Consequence: Dependency on ImageMagick installation; subprocess overhead; potential security surface (command injection if filenames not sanitized).
  • Model-level file assignment vs. separate service

    • Why: Closer to Rails conventions; integrates with validations and callbacks.
    • Consequence: Models become larger; file handling logic tied to ActiveRecord lifecycle; harder to reuse processors outside models.
  • Multiple storage backends via single configuration

    • Why: Flexibility for different deployment scenarios (dev local, prod S3).
    • Consequence: Increased code paths; more conditional

🪤Traps & gotchas

ImageMagick/file command must be installed system-wide for content detection and image processing to work; tests fail silently if missing. FakeWeb is used for HTTP mocking in S3 tests (features/step_definitions/s3_steps.rb), so actual S3 calls are intercepted. Appraisals gemfiles (gemfiles/4.2.gemfile, gemfiles/5.0.gemfile) must be synchronized when Rails version support changes. The project uses .hound.yml for code review automation and .codeclimate.yml for metrics—misconfigurations affect CI feedback. Deprecated project status means CI and dependencies may rot without updates.

🏗️Architecture

💡Concepts to learn

  • Content-Type Detection (MIME type sniffing) — Paperclip must identify uploaded file types securely to prevent malicious uploads and route files to correct processors; magic byte inspection prevents extension spoofing attacks
  • Image Geometry Calculation — Core feature of Paperclip is resizing/thumbnailing images while preserving aspect ratio; geometry.rb implements the mathematical transformations needed for responsive image styles
  • ActiveRecord Callbacks & Hooks — Paperclip integrates with Rails via before_save/after_save hooks in callbacks.rb to trigger file processing, deletion, and validation at the right model lifecycle moments
  • Attachment Registry Pattern — attachment_registry.rb maintains global state of all attachments defined on models; allows Paperclip to manage multiple independent attachments per model (user.avatar + user.banner)
  • Storage Abstraction (Filesystem vs S3) — Paperclip abstracts file storage backend behind a common interface; allows seamless switching between local disk and cloud storage without code changes in the model
  • BDD Testing with Cucumber — features/ directory uses Cucumber scenarios to test file upload workflows end-to-end; step definitions in features/step_definitions/ show integration with Rails and real file I/O
  • Rails Generators for Schema Migrations — lib/generators/paperclip/ implements Rails' Generator API to scaffold database migrations automatically; this is how users add attachment columns without manual SQL
  • kreeti/kt-paperclip — Actively maintained fork of Paperclip; this is the recommended replacement for bug fixes and new features after thoughtbot deprecated the original
  • rails/rails — ActiveStorage is the official Rails replacement for Paperclip; the migration guide in thoughtbot/paperclip/MIGRATING.md explains the path forward
  • carrierwaveuploader/carrierwave — Alternative file upload gem for Rails with similar goals; some users migrated from Paperclip to CarrierWave before ActiveStorage existed
  • thoughtbot/factory_bot — Complementary thoughtbot gem often used in Paperclip test suites to generate test fixtures with mock attachments
  • aws/aws-sdk-ruby — Required dependency for S3 storage backend in Paperclip; handles AWS authentication and object upload

🪄PR ideas

To work on one of these in Claude Code or Cursor, paste: Implement the "<title>" PR idea from CLAUDE.md, working through the checklist as the task list.

Complete migration guide documentation for kt-paperclip fork

The README points to a migration guide 'available [in English]' but the link is incomplete (ends with 'https://github.com/thoughtbot/paperclip/blob/'). Since Paperclip is officially deprecated and users are directed to kt-paperclip, completing and polishing the migration guide in MIGRATING.md and MIGRATING-ES.md with concrete examples would be high-value. This could include step-by-step ActiveStorage migration patterns, common pitfalls, and how to handle existing attachments.

  • [ ] Review current MIGRATING.md and MIGRATING-ES.md for incomplete sections or broken references
  • [ ] Add concrete code examples for migrating from Paperclip attachments to ActiveStorage
  • [ ] Document data migration strategies for existing file attachments in production databases
  • [ ] Add troubleshooting section for common migration issues
  • [ ] Ensure Spanish version (MIGRATING-ES.md) is complete and up-to-date

Add comprehensive test coverage for io_adapters module

The lib/paperclip/io_adapters directory contains 10 different adapter implementations (FileAdapter, HTTPUrlProxyAdapter, DataURIAdapter, etc.) but there's no visible test directory structure in the file listing. These adapters are critical path code for file handling. Adding thorough unit tests for edge cases (malformed URIs, network failures, encoding issues) would prevent regressions and make the deprecated codebase more maintainable for users still relying on it.

  • [ ] Create spec/paperclip/io_adapters/ directory structure matching lib/paperclip/io_adapters/
  • [ ] Write unit tests for lib/paperclip/io_adapters/abstract_adapter.rb covering initialization and common interface
  • [ ] Add tests for lib/paperclip/io_adapters/uri_adapter.rb with various URI schemes and malformed inputs
  • [ ] Add tests for lib/paperclip/io_adapters/http_url_proxy_adapter.rb covering network timeouts and redirects
  • [ ] Add tests for lib/paperclip/io_adapters/data_uri_adapter.rb with various encodings
  • [ ] Integrate new tests into Rakefile and .travis.yml CI pipeline

Add feature tests for S3 storage with modern AWS SDK patterns

features/step_definitions/s3_steps.rb exists but the broader S3 integration testing appears incomplete relative to the critical importance of S3 storage. Given that many existing Paperclip users rely on S3, adding Cucumber feature tests that verify S3 bucket operations (upload, delete, URL generation, error handling) against modern AWS SDK patterns would help users during migration planning and ensure the deprecated code continues to work reliably.

  • [ ] Review existing features/step_definitions/s3_steps.rb and features/rake_tasks.feature for S3 coverage gaps
  • [ ] Create new features/s3_integration.feature with scenarios for: S3 upload success, S3 delete, S3 URL generation, bucket permission errors
  • [ ] Add step definitions in features/step_definitions/s3_steps.rb for mocking/stubbing modern AWS SDK interactions
  • [ ] Document S3 configuration requirements in features/support/env.rb
  • [ ] Update .travis.yml to run S3 feature tests with appropriate AWS credentials mocking

🌿Good first issues

  • Update documentation for kt-paperclip migration path: The README currently directs to multiple migration guides but could have a clearer 'getting started with migration' section for users wanting to move away. Add a new section to README.md with comparison table of Paperclip vs ActiveStorage features.
  • Enhance content-type detection test coverage: lib/paperclip/content_type_detector.rb and file_command_content_type_detector.rb lack explicit test cases for edge cases (malformed files, spoofed extensions). Add Cucumber scenarios in features/basic_integration.feature covering MIME detection for at least 10 file types.
  • Document geometry calculation behavior: lib/paperclip/geometry.rb has complex aspect-ratio and resize logic but minimal inline documentation. Add RDoc comments to GeometryDetector class explaining the calculation algorithm and add example feature scenarios in features/ showing expected resize behavior for square, portrait, and landscape images.

Top contributors

Click to expand

📝Recent commits

Click to expand
  • c769382 — Link to Doorkeeper's Paperclip migration guide (mike-burns)
  • e3f7493 — Kreeti has a TLS Web site now (mike-burns)
  • 15f85a8 — Link to kt-paperclip (mike-burns)
  • 6661480 — Link to Colleen Schnettler's talk (mike-burns)
  • 1949da3 — Fix typo in Migration to ActiveStorage (JamesWatling)
  • fdbaefd — Add missing "not" in Migration Guide Validations section (TRMW)
  • 4a09322 — RSpec custom matcher should use match, not matches (abhchand)
  • 17050e4 — Fix SQL: key is reserved word (mike-burns)
  • 3d8293b — Fix a couple of typos in the migration guide (Paul M. Thiebauth)
  • ae47aed — Syntax fixes for DB migration (mike-burns)

🔒Security observations

  • Critical · Deprecated Library - No Security Maintenance — README.md, entire codebase. Paperclip is officially deprecated and no longer accepts bug reports or pull requests. This means security vulnerabilities will not be patched. The project explicitly states it is no longer maintaining the library and recommends migration to Rails ActiveStorage. Fix: Migrate to Rails ActiveStorage or use kt-paperclip (maintained fork). Do not use this library for new projects or critical systems.
  • High · File Upload Security - Content Type Validation — lib/paperclip/content_type_detector.rb, lib/paperclip/file_command_content_type_detector.rb, lib/paperclip/media_type_spoof_detector.rb. The codebase contains content type detection mechanisms (lib/paperclip/content_type_detector.rb, lib/paperclip/file_command_content_type_detector.rb) and media type spoof detection (lib/paperclip/media_type_spoof_detector.rb), but without seeing the actual implementation, these mechanisms may be bypassable. File uploads are inherently risky if not properly validated. Fix: Implement strict whitelist-based content type validation. Use file magic number verification. Store uploads outside web root. Disable script execution in upload directories. Regularly update to kt-paperclip or ActiveStorage.
  • High · Path Traversal Risk in File Handling — lib/paperclip/filename_cleaner.rb, lib/paperclip/interpolations.rb. The filename_cleaner.rb module handles file name sanitization. Without reviewing the implementation, there's potential risk for path traversal attacks if filenames are not properly sanitized before being used in file operations. Fix: Ensure strict filename sanitization that removes or rejects path traversal sequences (../, ..\ etc). Use UUID-based filenames instead of user-provided names. Validate against whitelist of allowed characters.
  • High · HTTP URL Proxy Adapter - SSRF Vulnerability — lib/paperclip/io_adapters/http_url_proxy_adapter.rb. The http_url_proxy_adapter.rb allows fetching files from URLs. This presents a Server-Side Request Forgery (SSRF) risk if URLs are not properly validated, potentially allowing access to internal resources or metadata endpoints. Fix: Implement strict URL validation: whitelist allowed domains, reject private/internal IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 127.0.0.1, localhost), implement request timeouts, and use allow-lists for protocols (https only).
  • High · Data URI Adapter - XSS/Code Injection Risk — lib/paperclip/io_adapters/data_uri_adapter.rb. The data_uri_adapter.rb processes data: URIs. If these are user-controlled and embedded in HTML contexts, they could lead to XSS attacks. Data URIs can execute scripts if not properly sandboxed. Fix: Validate and sanitize data URIs. Enforce content type restrictions. Never directly embed user-provided data URIs in HTML without proper escaping. Consider disabling this adapter if not needed.
  • Medium · AWS S3 Storage - Credentials Exposure Risk — lib/paperclip/storage/fog.rb. The fog.rb storage adapter handles S3 integration. If AWS credentials are not properly managed (environment variables instead of hardcoded, IAM roles, etc.), they could be exposed in code, logs, or environment dumps. Fix: Always use environment variables or IAM roles for AWS credentials. Never hardcode credentials. Use IAM policies with least privilege. Regularly rotate credentials. Enable MFA for AWS console access. Use temporary STS tokens when possible.
  • Medium · SQL Injection Risk in ActiveRecord Integration — lib/paperclip/attachment.rb, lib/paperclip/glue.rb, lib/paperclip/attachment_registry.rb. The attachment.rb and glue.rb modules integrate deeply with ActiveRecord. While Rails provides parameterized queries, custom query construction in these modules could introduce SQL injection if user input is not properly escaped. Fix: Use ActiveRecord's built-in parameterized query methods (?, named parameters). Never construct SQL strings with string interpolation. Use ORM methods

LLM-derived; treat as a starting point, not a security audit.


Generated by RepoPilot. Verdict based on maintenance signals — see the live page for receipts. Re-run on a new commit to refresh.

Mixed signals · thoughtbot/paperclip — RepoPilot