summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/generic_file.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/generic_file.rb b/app/models/generic_file.rb
index 24680af..0e4dce5 100644
--- a/app/models/generic_file.rb
+++ b/app/models/generic_file.rb
@@ -17,6 +17,10 @@ class GenericFile < ActiveRecord::Base
before_save :determine_file_type
+ def to_s
+ self.name
+ end
+
def store_dir
"/var/opt/gemeinschaft/generic_files/#{self.id.to_i}"
end