12345678910111213141516171819 |
- class CustomWizard::Field
- def self.types
- @types ||= ['text', 'textarea', 'dropdown', 'image', 'checkbox', 'user-selector', 'text-only', 'composer']
- 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
|