Method: UiComponents::Config.safelist!
- Defined in:
- lib/ui_components/config.rb
.safelist! ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/ui_components/config.rb', line 39 def safelist! file_content =( UiComponents::Config::DaisyUiClassNames.all + UiComponents::Config::TailwindClassNames.all + DocumentationComponent::CSS_CLASSES ).uniq.sort.join(" ") File.write(Rails.root.join("safelist.txt"), file_content) file_content end |