Class: Qlive::SuitesController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/qlive/suites_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



4
5
6
7
8
9
10
11
# File 'app/controllers/qlive/suites_controller.rb', line 4

def index
  Qlive::DevReload.reload_main if Qlive.setup[:gem_dev_mode]
  Qlive::Registry.find_suites
  @suites = Qlive::Registry.all_by_name.keys.map do |suite_name|
    Qlive::Registry.build_suite(suite_name)
  end
  @suites.compact!
end