Add offline model and "new" form/controller
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user