Sha256: 5118bd484a691a21138e470b64da2ac39918ee43347f4e2bfba80cade0afd67e
Contents?: true
Size: 669 Bytes
Versions: 12
Compression:
Stored size: 669 Bytes
Contents
# frozen_string_literal: true module Auther # The main engine. class Engine < ::Rails::Engine isolate_namespace Auther config.auther = {} 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.assets.precompile.append "auther/application.css" unless Rails.env.test? app.config.app_middleware.use Gatekeeper, app.config.auther app.config.filter_parameters += %i[login password] end end end
Version data entries
12 entries across 12 versions & 1 rubygems