Class: FieldTest::HomeController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/field_test/home_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



9
10
11
# File 'app/controllers/field_test/home_controller.rb', line 9

def index
  @active_experiments, @completed_experiments = FieldTest::Experiment.all.sort_by(&:id).partition { |e| e.active? }
end