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

Instance Method Details

#merge_html_classes(value1, value2) ⇒ Array

Merges two values into a new array while flattening and removing nils.

Parameters:

  • value1 (String, Array)
  • value2 (String, Array)

Returns:

  • (Array)


9
10
11
# File 'app/helpers/pure_admin/application_helper.rb', line 9

def merge_html_classes(value1, value2)
  [value1, value2].flatten.compact
end