Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request stavro#210 from mayppong/config-storage-dir
Browse files Browse the repository at this point in the history
Use `storage_dir` key in config for default storage directory
  • Loading branch information
stavro authored Jan 8, 2018
2 parents 3d9f647 + 4fa1338 commit cd9f4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/arc/definition/storage.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule Arc.Definition.Storage do
@async true

def filename(_, {file, _}), do: Path.basename(file.file_name, Path.extname(file.file_name))
def storage_dir(_, _), do: "uploads"
def storage_dir(_, _), do: Application.get_env(:arc, :storage_dir, "uploads")
def validate(_), do: true
def default_url(version, _), do: default_url(version)
def default_url(_), do: nil
Expand Down

0 comments on commit cd9f4ef

Please sign in to comment.