Sha256: b9e929bf48c9ef85285f0bfa44abcdea8bc7f49b382e5bde9f98df6d195e5ef0
Contents?: true
Size: 415 Bytes
Versions: 2
Compression:
Stored size: 415 Bytes
Contents
module FieldTest class HomeController < ActionController::Base layout "field_test/application" protect_from_forgery http_basic_authenticate_with name: ENV["FIELD_TEST_USERNAME"], password: ENV["FIELD_TEST_PASSWORD"] if ENV["FIELD_TEST_PASSWORD"] def index @active_experiments, @completed_experiments = FieldTest::Experiment.all.sort_by(&:id).partition { |e| e.active? } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
field_test-0.1.2 | app/controllers/field_test/home_controller.rb |
field_test-0.1.1 | app/controllers/field_test/home_controller.rb |