Sha256: 8dce396171102b98f57e1c23cc82dda5de9a9ba4e9b2c36fa02a2dd6d353aee7
Contents?: true
Size: 946 Bytes
Versions: 7
Compression:
Stored size: 946 Bytes
Contents
# frozen_string_literal: true # List all files that should be automatically loaded for apps using the Engine here (besides files in app/) # There are multiple ways to accomplish this via autoloading or eagerloading, # but using `require` seems to be the simplest, least-error-prone way. require "nulogy_sso/controller_helper" module NulogySSO class Engine < ::Rails::Engine isolate_namespace NulogySSO # Load all gems in the gemspec, as opposed to explicit require calls Bundler.require(*Rails.groups) config.after_initialize do if NulogySSO.sso_config.blank? raise "Missing sso_config config object. Consider using config_for() to load a YAML config file." end if NulogySSO.find_user_by_email.blank? raise "Missing find_user_by_email config lambda." end if NulogySSO.handle_sso_error.blank? raise "Missing handle_sso_error config lambda." end end end end
Version data entries
7 entries across 7 versions & 1 rubygems