Sha256: 4deb5b530984d153b77098047ae2c8239b6327e213fc7949ab0a30941763dd9e

Contents?: true

Size: 351 Bytes

Versions: 4

Compression:

Stored size: 351 Bytes

Contents

# frozen_string_literal: true

module SimpleAuth
  class Railtie < Rails::Railtie
    generators do
      require "simple_auth/generator"
    end

    config.after_initialize do
      ActiveSupport.on_load(:active_record) do
        SimpleAuth::Session.record_not_found_exceptions <<
          ActiveRecord::RecordNotFound
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple_auth-3.1.4 lib/simple_auth/railtie.rb
simple_auth-3.1.3 lib/simple_auth/railtie.rb
simple_auth-3.1.2 lib/simple_auth/railtie.rb
simple_auth-3.1.1 lib/simple_auth/railtie.rb