Module: ServiceMixHelper

Defined in:
lib/rad/http_controller/helpers/service_mix_helper.rb

Instance Method Summary collapse

Instance Method Details

#logoObject

[ [‘BOS-Tec’, ‘/’],

‘Lab’, lab_path

]



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/rad/http_controller/helpers/service_mix_helper.rb', line 8

def 
  return [] if @logo.blank?    
   = @logo.is_a?(Array) ? @logo : [@logo]
  .size.must_be.in 1..2
  
  # Delete default space name if there is
   = .select do |item|
    if item.is_a?(Array)
      !Space.default?(item[0])
    else
      !Space.default?(item)
    end
  end

  .collect{|item| item.is_a?(Array) ? link_to(item.first, item.last) : item}
end