Skip to content

Commit

Permalink
#yeti-switch#1349, Improve ApiControllers module to remove duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivanov-Anton authored and gigorok committed Oct 20, 2023
1 parent c0ace92 commit 962b1f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/lib/api_controllers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ def list
"#{route[:controller].camelize}Controller"
end
end

@list.uniq!
end

module_function :list
Expand Down

0 comments on commit 962b1f2

Please sign in to comment.