summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-04-11 10:52:14 +0200
committerPeter Kozak <spag@golwen.net>2013-04-11 10:52:14 +0200
commitea80c69be9749d15cad1b74253f3e5397466f4ad (patch)
tree7593cfb4ec0222acce9dbf8107fff1bdba130f65
parent4cbc64ec6a0a800d14ba37acb3b210dc6aa39269 (diff)
user files
-rw-r--r--app/models/user.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 81d1622..5e97459 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -96,6 +96,8 @@ class User < ActiveRecord::Base
has_many :voicemail_accounts, :as => :voicemail_accountable, :dependent => :destroy
+ has_many :generic_files, :as => :owner, :dependent => :destroy
+
# Avatar like photo
mount_uploader :image, ImageUploader