Skip to content

Commit

Permalink
Change the default store_dir for ckeditor assets to be in the public/…
Browse files Browse the repository at this point in the history
…system directory.
  • Loading branch information
Joseph Chen committed Apr 13, 2012
1 parent b889d49 commit acc9414
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CkeditorAttachmentFileUploader < CarrierWave::Uploader::Base
# Override the directory where uploaded files will be stored.
# This is a sensible default for uploaders that are meant to be mounted:
def store_dir
"ckeditor_assets/attachments/#{model.id}"
"system/ckeditor_assets/attachments/#{model.id}"
end

# Provide a default URL as a default if there hasn't been a file uploaded:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CkeditorPictureUploader < CarrierWave::Uploader::Base
# Override the directory where uploaded files will be stored.
# This is a sensible default for uploaders that are meant to be mounted:
def store_dir
"ckeditor_assets/pictures/#{model.id}"
"system/ckeditor_assets/pictures/#{model.id}"
end

# Provide a default URL as a default if there hasn't been a file uploaded:
Expand Down

0 comments on commit acc9414

Please sign in to comment.