HabitatMap/AirCasting

View on GitHub
app/controllers/client_app_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ClientAppController < ApplicationController
  include ApplicationHelper

  def index
    if Flipper.enabled?(:calendar)
      render layout: 'client_app'
    else
      render_not_found
    end
  end

  private

  def render_not_found
    render file: "#{Rails.root}/public/404.html",
           layout: false,
           status: :not_found
  end
end