Skip to content

Commit

Permalink
Cleanup units controller action, no routes or views for this, so neve…
Browse files Browse the repository at this point in the history
…r used
  • Loading branch information
murny committed Jun 17, 2024
1 parent 0249a10 commit 5a99610
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions app/controllers/profiles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,6 @@ def destroy
redirect_to profiles_path
end

def units
@unit = params[:id]
@unitname = $units[params[:id].to_sym]
@profiles = Profile.where("unit=?", params[:id])
end

private

def profile_params
Expand Down
6 changes: 0 additions & 6 deletions test/integration/profiles_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,4 @@ class ProfilesTest < ActionDispatch::IntegrationTest

assert_redirected_to profiles_url
end

# TODO: There is no route for this endpoint?
# test "should get units" do
# get units_profiles_url
# assert_response :success
# end
end

0 comments on commit 5a99610

Please sign in to comment.