Sha256: abc04de346e2f20c83990b87f42c44337917d28116fdd4df74b95bc361b50a80

Contents?: true

Size: 615 Bytes

Versions: 2

Compression:

Stored size: 615 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 { |presenter| require_dependency presenter }
    end

    initializer "auther.initialize" do |app|
      app.config.app_middleware.use Gatekeeper, app.config.auther_settings
      app.config.filter_parameters += [:login, :password]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
auther-6.1.0 lib/auther/engine.rb
auther-6.0.0 lib/auther/engine.rb