Skip to content

Commit

Permalink
Merge pull request ManageIQ#19382 from mzazrivec/dont_use_gettext_in_…
Browse files Browse the repository at this point in the history
…model_constants_4

ChargebackRateDetail: don't use gettext in model constants
  • Loading branch information
Fryguy authored Oct 11, 2019
2 parents bc374f4 + bbd51b5 commit 4072a08
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/models/chargeback_rate_detail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class ChargebackRateDetail < ApplicationRecord

FORM_ATTRIBUTES = %i(description per_time per_unit metric group source metric chargeable_field_id sub_metric).freeze
PER_TIME_TYPES = {
"hourly" => _("Hourly"),
"daily" => _("Daily"),
"weekly" => _("Weekly"),
"monthly" => _("Monthly"),
'yearly' => _('Yearly')
"hourly" => N_("Hourly"),
"daily" => N_("Daily"),
"weekly" => N_("Weekly"),
"monthly" => N_("Monthly"),
'yearly' => N_('Yearly')
}.freeze

# gigabytes -> GiB
Expand Down

0 comments on commit 4072a08

Please sign in to comment.