CMSgov/dpc-app

View on GitHub
dpc-admin/app/controllers/application_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class ApplicationController < ActionController::Base
  def model_error_string(resource)
    resource.errors.full_messages.join(', ')
  end

  private

  def id_param
    params.require(:id)
  end

  def prod_sbx?
    ENV['ENV'] == 'prod-sbx'
  end
  helper_method :prod_sbx?
end