FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
tip4commit/app/models/ability.rb at master · tip4commit/tip4commit · GitHub
tip4commit
tip4commit
Repository navigation
Code
Issues
54
(54)
Pull requests
13
(13)
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
tip4commit
/
app
/
models
/
ability.rb
Copy path
More file actions
More file actions
Latest commit
History
History
History
11 lines (8 loc) · 243 Bytes
Breadcrumbs
tip4commit
/
app
/
models
/
ability.rb
Copy path
File metadata and controls
11 lines (8 loc) · 243 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true
class
Ability
include
CanCan
::
Ability
def
initialize
(
user
)
return
unless
user
&&
user
.
nickname
.
present?
can
%i[
update
decide_tip_amounts
]
,
Project
,
collaborators
:
{
login
:
user
.
nickname
}
end
end
Back
|
FazBrowse Home
|
New Git URL