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
friendly_id
[opencantine5/opencantine5.git]
/
app
/
models
/
compte.rb
diff --git
a/app/models/compte.rb
b/app/models/compte.rb
index
2313e38
..
b9a7390
100644
(file)
--- a/
app/models/compte.rb
+++ b/
app/models/compte.rb
@@
-1,4
+1,9
@@
class Compte < ApplicationRecord
+ extend FriendlyId
+ friendly_id :nom, use: :slugged
+
+ audited
+
belongs_to :structure
has_many :contacts, inverse_of: :compte, dependent: :delete_all