Skip to content

Commit

Permalink
Refs #36757 - Avoid translations during startup
Browse files Browse the repository at this point in the history
The model_name.human method actively translates, which can't be used
during start up and is not desired in this context.

Fixes: 827ee59 ("Fixes #30470 - Add DSL docs for smart proxy (theforeman#7846)")
  • Loading branch information
ekohl committed Jul 7, 2023
1 parent ade2c41 commit 6132dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/smart_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def get_features
end
end

apipie :class, desc: "A class representing #{model_name.human} object" do
apipie :class, desc: "A class representing #{humanize_class_name} object" do
name 'Smart Proxy'
refs 'SmartProxy'
sections only: %w[all additional]
Expand Down

0 comments on commit 6132dcb

Please sign in to comment.