Module: PureAdmin::ApplicationHelper
- Included in:
- AddonInput
- Defined in:
- app/helpers/pure_admin/application_helper.rb
Overview
Generic helper methods to be used throughout the Pure application.
Instance Method Summary collapse
-
#merge_html_classes(value1, value2) ⇒ Array
Merges two values into a new array while flattening and removing nils.
Instance Method Details
#merge_html_classes(value1, value2) ⇒ Array
Merges two values into a new array while flattening and removing nils.
9 10 11 |
# File 'app/helpers/pure_admin/application_helper.rb', line 9 def merge_html_classes(value1, value2) [value1, value2].flatten.compact end |