Skip to content

Conversation

@shey
Copy link
Owner

@shey shey commented Jun 8, 2025

Ransack needs a list of safe attributes.

Ransack can not look into the jsonb data attribute.

Ransack recommends:

def self.ransackable_attributes(auth_object = nil)
    [
      "branch", "color", "contributors", "created_at", "data", "dependents",
      "description", "forks", "github", "github_about", "hidden_at", "id", "id_value",
      "last_activity_at", "last_commit", "meta_last_updated_at", "name", "pulse",
      "rails_major_version", "readme", "short_blurb", "slug", "stars", "updated_at",
      "watchers", "website"
    ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants