0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 18:50:27 +01:00
discourse-custom-wizard/lib/field.rb
Angus McLeod a09376e645 various
2017-10-30 14:24:51 +08:00

19 Zeilen
371 B
Ruby

class CustomWizard::Field
def self.types
@types ||= ['text', 'textarea', 'dropdown', 'image', 'radio']
end
def self.require_assets
@require_assets ||= {}
end
def self.add_assets(type, plugin = nil, asset_paths = [])
if type
types.push(*type)
end
if plugin && asset_paths
require_assets[plugin] = asset_paths
end
end
end