Sha256: ad0a6fe53058f144ed9a3d7e2be485d182f265c94d3fa84981d78e6aa9feb338

Contents?: true

Size: 231 Bytes

Versions: 6

Compression:

Stored size: 231 Bytes

Contents

class IndexController < ApplicationController
  def show
    if determinator.feature_flag_on?(:colloquial_welcome)
      render json: { welcome: 'hi world' }
    else
      render json: { welcome: 'hello world' }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
determinator-0.5.0 examples/determinator-rails/app/controllers/index_controller.rb
determinator-0.4.0 examples/determinator-rails/app/controllers/index_controller.rb
determinator-0.3.0 examples/determinator-rails/app/controllers/index_controller.rb
determinator-0.2.0 examples/determinator-rails/app/controllers/index_controller.rb
determinator-0.1.1 examples/determinator-rails/app/controllers/index_controller.rb
determinator-0.1.0 examples/determinator-rails/app/controllers/index_controller.rb