Sha256: 69bd5408b3c022ed5567ca33b7e2dba1df712336eb27c4516bc8c9fa6c521891

Contents?: true

Size: 335 Bytes

Versions: 2

Compression:

Stored size: 335 Bytes

Contents

module Vanity
  module Rails
    module ConsoleActions
      def index
        render Vanity.template("_report"), content_type: Mime::HTML, layout: true
      end

      def chooses
        experiment(params[:e]).chooses(experiment(params[:e]).alternatives[params[:a].to_i].value)
        redirect_to :back
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vanity-0.3.1 lib/vanity/rails/console.rb
vanity-0.3.0 lib/vanity/rails/console.rb