1
0
Fork 0
discourse-custom-wizard-unl.../lib/field.rb
Angus McLeod e859e3efa2 various
2017-10-13 21:02:34 +08:00

19 Zeilen
371 B
Ruby

class CustomWizard::Field
def self.types
@types ||= ['dropdown', 'image', 'radio', 'text', 'textarea']
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