Method: Primer::Alpha::AutoComplete#before_render
- Defined in:
- app/components/primer/alpha/auto_complete.rb
#before_render ⇒ Object
add ‘input` and `results` without needing to explicitly call them in the view
91 92 93 94 |
# File 'app/components/primer/alpha/auto_complete.rb', line 91 def before_render with_results(classes: "") unless results? with_input(classes: "") unless input? end |