Skip to content

Commit

Permalink
Fix/Corrige merge conflitos
Browse files Browse the repository at this point in the history
Co-authored-by: Paulo Henrique <[email protected]>
  • Loading branch information
anaresgalla and hreis1 committed Feb 15, 2024
1 parent 7ba63be commit 4de95dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/reports_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def remove_profile
private

def set_reportable_for_new
reportable_id = params[:reportable]
reportable_type = params[:reportable_type]
@reportable = Post.friendly.find(reportable_id) if reportable_type == 'Post'
@reportable = Profile.friendly.find(reportable_id) if reportable_type == 'Profile'
Expand Down

0 comments on commit 4de95dd

Please sign in to comment.