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
46
46
end
47
47
48
48
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" )
50
50
create_uploader ( model_name , project_module_name , model_destination )
51
51
end
52
52
53
53
defp generate_phx_uploader_file ( model_name , project_module_name ) do
54
54
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" )
56
56
create_uploader ( model_name , project_module_name , model_destination )
57
57
end
58
58
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ defmodule Waffle.Storage.S3 do
6
6
destination_dir = definition . storage_dir ( version , { file , scope } )
7
7
s3_bucket = s3_bucket ( definition )
8
8
s3_key = Path . join ( destination_dir , file . file_name )
9
- asset_host = asset_host ( definition )
10
9
acl = definition . acl ( version , { file , scope } )
11
10
12
11
s3_options =
You can’t perform that action at this time.
0 commit comments