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

Version Path
auther-17.0.0 lib/auther/engine.rb
auther-16.10.0 lib/auther/engine.rb
auther-16.9.0 lib/auther/engine.rb
auther-16.8.0 lib/auther/engine.rb
auther-16.7.0 lib/auther/engine.rb
auther-16.6.0 lib/auther/engine.rb
auther-16.5.0 lib/auther/engine.rb
auther-16.4.0 lib/auther/engine.rb
auther-16.3.0 lib/auther/engine.rb
auther-16.2.0 lib/auther/engine.rb
auther-16.1.0 lib/auther/engine.rb
auther-16.0.0 lib/auther/engine.rb