Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/arc/storage/s3.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule Arc.Storage.S3 do
destination_dir = definition.storage_dir(version, {file, scope})
s3_bucket = s3_bucket(definition)
s3_key = Path.join(destination_dir, file.file_name)
asset_host = asset_host(definition)
_asset_host = asset_host(definition)
Comment thread
sheharyarn marked this conversation as resolved.
Outdated
acl = definition.acl(version, {file, scope})

s3_options =
Expand Down
4 changes: 2 additions & 2 deletions lib/mix/tasks/g.ex
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ defmodule Mix.Tasks.Arc do
end

defp generate_uploader_file(model_name, project_module_name, path) do
model_destination = Path.join(System.cwd(), "#{path}/#{underscore(model_name)}.ex")
model_destination = Path.join(File.cwd(), "#{path}/#{underscore(model_name)}.ex")
Comment thread
sheharyarn marked this conversation as resolved.
Outdated
create_uploader(model_name, project_module_name, model_destination)
end

defp generate_phx_uploader_file(model_name, project_module_name) do
app_name = Mix.Project.config[:app]
model_destination = Path.join(System.cwd(), "/lib/#{app_name}_web/uploaders/#{underscore(model_name)}.ex")
model_destination = Path.join(File.cwd(), "/lib/#{app_name}_web/uploaders/#{underscore(model_name)}.ex")
create_uploader(model_name, project_module_name, model_destination)
end

Expand Down