Sha256: d01c34b81a7b139e85b89e2ed3d275796a8baa09ff7f24402068a21e49f98652
Contents?: true
Size: 948 Bytes
Versions: 4
Compression:
Stored size: 948 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.auth_config.blank? raise "Missing auth_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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
nulogy_sso-0.4.0 | lib/nulogy_sso/engine.rb |
nulogy_sso-0.3.3 | lib/nulogy_sso/engine.rb |
nulogy_sso-0.3.1 | lib/nulogy_sso/engine.rb |
nulogy_sso-0.3.0 | lib/nulogy_sso/engine.rb |