summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-04-26 10:44:51 +0200
committerPeter Kozak <spag@golwen.net>2013-04-26 10:44:51 +0200
commitfc95124eb0eb628ddf3250b4ca4ce8a07e7deeda (patch)
treeaebe426fb7f5ff34cc42ce225f07a15ec06ba5c1 /app
parent9819250c6e1bed2288fa2cf773b6efbe12172cb7 (diff)
to_s method added
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