18F/identity-idp

View on GitHub
app/controllers/no_js_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

class NoJsController < ApplicationController
  SESSION_KEY = :no_js_css

  def index
    session[SESSION_KEY] = true
    analytics.no_js_detect_stylesheet_loaded(location: params[:location])
    render body: '', content_type: 'text/css'
  end
end