Method: Focuslight::Data#get_sections
- Defined in:
- lib/focuslight/data.rb
#get_sections(service) ⇒ Object
162 163 164 165 166 |
# File 'lib/focuslight/data.rb', line 162 def get_sections(service) rows1 = @graphs.select(:section_name).order(:section_name).where(service_name: service).all rows2 = @complex_graphs.select(:section_name).order(:section_name).where(service_name: service).all (rows1 + rows2).map{|row| row[:section_name]}.uniq.sort end |