fix broken page loading

This commit is contained in:
Rukongai authored and James Smith committed 2024-03-15 16:08:43 +00:00
1 parent a6b10b61b9
commit dfdfa83c8b
4 files changed
+12 -3

No files matched your search

+4
View File
@@ -12,4 +12,8 @@ class Link < ApplicationRecord
def self.ransackable_attributes(_auth_object = nil)
["created_at", "id", "linkable_id", "linkable_type", "updated_at", "url"]
end
def self.ransackable_associations(auth_object = nil)
["linkable"]
end
end
+1 -1
View File
@@ -92,7 +92,7 @@ class Model < ApplicationRecord
end
def self.ransackable_attributes(_auth_object = nil)
["caption", "created_at", "id", "name", "notes", "path", "slug", "updated_at"]
["caption", "created_at", "id", "name", "notes", "path", "slug", "updated_at", "license_cont", "license"]
end
def self.ransackable_associations(auth_object = nil)
+1 -1
View File
@@ -95,7 +95,7 @@ class ModelFile < ApplicationRecord
end
def self.ransackable_attributes(_auth_object = nil)
["caption", "created_at", "digest", "filename", "id", "notes", "presupported", "size", "updated_at", "y_up"]
["caption", "created_at", "digest", "filename", "id", "notes", "presupported", "size", "updated_at", "y_up", "presupported_version_id", "unsupported_version_id"]
end
def self.ransackable_associations(_auth_object = nil)
+6 -1
View File
@@ -49,6 +49,11 @@ class Problem < ApplicationRecord
end
def self.ransackable_attributes(auth_object = nil)
["category", "created_at", "id", "note", "problematic_id", "problematic_type", "updated_at"]
["category", "created_at", "id", "note", "problematic_id", "problematic_type", "updated_at", "ignored"]
end
def self.ransackable_associations(auth_object = nil)
["problematic"]
end
end