Skip to content

Commit

Permalink
store path changed from uploads to upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Arturs Meisters committed Mar 31, 2011
1 parent fb7e0f6 commit 4316da2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/uploaders/file_uploader.rb
Expand Up @@ -12,9 +12,9 @@ def timestamp
# With slash in first place it will be absolute url, otherwise relative to Rails.root+"/public"
def store_dir
if model
"uploads/#{model.class.to_s.underscore}/#{timestamp}/#{model.id}"
"upload/#{model.class.to_s.underscore}/#{timestamp}/#{model.id}"
else
"uploads/misc"
"upload/misc"
end
end

Expand Down

0 comments on commit 4316da2

Please sign in to comment.