Add offline model and "new" form/controller
Some checks failed
CI / scan_ruby (push) Successful in 18s
CI / scan_js (push) Successful in 15s
CI / lint (push) Failing after 14s
CI / test (push) Failing after 15m10s

This commit is contained in:
sto
2025-10-29 17:20:38 +01:00
parent a8f1ffd920
commit 35ad7da355
10 changed files with 158 additions and 2 deletions

View File

@@ -47,6 +47,22 @@ class ContestPolicy < ApplicationPolicy
record.user.id == user.id || user.admin?
end
def offline_new?
true
end
def offline_create?
true
end
def offline_edit?
true
end
def offline_update?
true
end
def scoreboard?
true
end