1
0
Fork 0
discourse-custom-wizard-unl.../lib/wizard/choice.rb
2019-12-05 19:05:21 +11:00

17 Zeilen
Kein EOL
353 B
Ruby

module CustomWizardChoiceExtension
def initialize(id, opts)
@id = id
@opts = opts
@data = opts[:data]
@extra_label = opts[:extra_label]
@icon = opts[:icon]
end
def label
@label ||= PrettyText.cook(@opts[:label])
end
end
class Wizard::Choice
prepend CustomWizardChoiceExtension if SiteSetting.custom_wizard_enabled
end