Sha256: 3143fe563d76b3aea7d9f8a11bfb79c99f03f6359797796a03f33de377e0d903
Contents?: true
Size: 631 Bytes
Versions: 1
Compression:
Stored size: 631 Bytes
Contents
# frozen_string_literal: true require "bourbon" require "neat" module Auther # The main engine. class Engine < ::Rails::Engine isolate_namespace Auther config.auther_settings = {} config.action_view.field_error_proc = proc { |html_tag, _| html_tag.html_safe } config.to_prepare do Dir.glob(Engine.root + "app/presenters/**/*.rb").each do |presenter| require_dependency presenter end end initializer "auther.initialize" do |app| app.config.app_middleware.use Gatekeeper, app.config.auther_settings app.config.filter_parameters += %i[login password] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
auther-7.1.0 | lib/auther/engine.rb |