Skip to content

[Blocked] Rails71plus#10

Open
shey wants to merge 2 commits intomainfrom
rails71plus
Open

[Blocked] Rails71plus#10
shey wants to merge 2 commits intomainfrom
rails71plus

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.

1 participant