File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,13 @@ defmodule Mix.Tasks.Waffle do
4646 end
4747
4848 defp generate_uploader_file ( model_name , project_module_name , path ) do
49- model_destination = Path . join ( System . cwd ( ) , "#{ path } /#{ underscore ( model_name ) } .ex" )
49+ model_destination = Path . join ( File . cwd! , "#{ path } /#{ underscore ( model_name ) } .ex" )
5050 create_uploader ( model_name , project_module_name , model_destination )
5151 end
5252
5353 defp generate_phx_uploader_file ( model_name , project_module_name ) do
5454 app_name = Mix.Project . config [ :app ]
55- model_destination = Path . join ( System . cwd ( ) , "/lib/#{ app_name } _web/uploaders/#{ underscore ( model_name ) } .ex" )
55+ model_destination = Path . join ( File . cwd! , "/lib/#{ app_name } _web/uploaders/#{ underscore ( model_name ) } .ex" )
5656 create_uploader ( model_name , project_module_name , model_destination )
5757 end
5858
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ defmodule Waffle.Storage.S3 do
66 destination_dir = definition . storage_dir ( version , { file , scope } )
77 s3_bucket = s3_bucket ( definition )
88 s3_key = Path . join ( destination_dir , file . file_name )
9- asset_host = asset_host ( definition )
109 acl = definition . acl ( version , { file , scope } )
1110
1211 s3_options =
You can’t perform that action at this time.
0 commit comments