0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 01:10:28 +01:00

Fix custom labels and descriptions

Dieser Commit ist enthalten in:
Angus McLeod 2018-05-20 11:57:48 +10:00
Ursprung 39b323c5d1
Commit b4e8572fd7

Datei anzeigen

@ -142,12 +142,12 @@ end
attributes :dropdown_none, :image
def label
return object.label if object.label
return object.label if object.label.present?
I18n.t("#{object.key || i18n_key}.label", default: '')
end
def description
return object.description if object.description
return object.description if object.description.present?
I18n.t("#{object.key || i18n_key}.description", default: '', base_url: Discourse.base_url)
end