howaboutwe/experimental

View on GitHub
lib/experimental/source/active_record.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Experimental
  module Source
    class ActiveRecord < Base
      def [](name)
        Experiment.find_by_name(name)
      end

      def available
        Experiment.available.all
      end
    end
  end
end