Module: ServiceMixHelper
- Defined in:
- lib/rad/http_controller/helpers/service_mix_helper.rb
Instance Method Summary collapse
-
#logo ⇒ Object
- [‘BOS-Tec’, ‘/’], [‘Lab’, lab_path
-
].
Instance Method Details
#logo ⇒ Object
[ [‘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 logo return [] if @logo.blank? logo = @logo.is_a?(Array) ? @logo : [@logo] logo.size.must_be.in 1..2 # Delete default space name if there is logo = logo.select do |item| if item.is_a?(Array) !Space.default?(item[0]) else !Space.default?(item) end end logo.collect{|item| item.is_a?(Array) ? link_to(item.first, item.last) : item} end |