Skip to content

Commit

Permalink
Removed unneeded logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jan 26, 2021
1 parent 535ca84 commit b309841
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/controllers/pg_hero/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -373,11 +373,7 @@ def reset_query_stats
protected

def redirect_backward(options = {})
if Rails.version >= "5.1"
redirect_back fallback_location: root_path, **options
else
redirect_to :back, options
end
redirect_back fallback_location: root_path, **options
end

def set_database
Expand Down

0 comments on commit b309841

Please sign in to comment.