Skip to content

Commit

Permalink
rubocop fixes - csvfiles controller (#11516)
Browse files Browse the repository at this point in the history
* I changed lines 10,31 and 41

* Changed lines 10 and 31

* Update app/controllers/csvfiles_controller.rb

Co-authored-by: Tilda Udufo <[email protected]>

* Update app/controllers/csvfiles_controller.rb

Co-authored-by: Tilda Udufo <[email protected]>

* Update README.md

Co-authored-by: Tilda Udufo <[email protected]>
  • Loading branch information
victory-lydia and TildaDares authored Oct 20, 2022
1 parent ab30588 commit 83e0439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/csvfiles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def setter
filetitle: params[:filetitle],
filedescription: params[:filedescription],
filepath: params[:object],
filename: "file" + Time.now.to_i.to_s,
filename: "file#{Time.now.to_i}",
filestring: params[:filestring]
)
render json: @csvfile if @csvfile.save
Expand All @@ -28,7 +28,7 @@ def add_graphobject
filetitle: params[:filetitle],
filedescription: params[:filedescription],
filepath: params[:object],
filename: "file" + Time.now.to_i.to_s,
filename: "file#{Time.now.to_i}",
filestring: params[:filestring],
graphobject: params[:graphobject]
)
Expand Down

0 comments on commit 83e0439

Please sign in to comment.