projects
/
opencantine5
/
opencantine5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
moncompte index
[opencantine5/opencantine5.git]
/
app
/
policies
/
moncompte_policy.rb
diff --git a/app/policies/moncompte_policy.rb
b/app/policies/moncompte_policy.rb
new file mode 100644
(file)
index 0000000..
dfcbd88
--- /dev/null
+++ b/
app/policies/moncompte_policy.rb
@@ -0,0
+1,12
@@
+class MoncomptePolicy < ApplicationPolicy
+ class Scope < Scope
+ def resolve
+ scope.all
+ end
+ end
+
+ def index?
+ true
+ end
+
+end