Method: Megatron::ApplicationHelper#add_class
- Defined in:
- app/helpers/megatron/application_helper.rb
#add_class(string, *classes) ⇒ Object
56 57 58 59 60 |
# File 'app/helpers/megatron/application_helper.rb', line 56 def add_class(string, *classes) string ||= '' string << " #{classes.join(' ')}" string end |