rubyforgood/babywearing

View on GitHub
app/controllers/home_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class HomeController < ApplicationController
  skip_before_action :authenticate_user!

  def index
    @domain = [request.subdomains.last, request.domain].reject(&:blank?).join('.')
    @organizations = Organization.nonadmin.order(:name)
  end
end