Sha256: 6147f6e31d78c37ad4217e3b514161d31c5a225d28012c5cb17201d8b0f61cc9

Contents?: true

Size: 280 Bytes

Versions: 12

Compression:

Stored size: 280 Bytes

Contents

require 'jwt_keeper'
require 'rails'

module JWTKeeper
  # Includes JWTKeeper into ActionController
  class Engine < ::Rails::Engine
    initializer 'extend Controller with jwt_keeper' do |_app|
      ActionController::Base.send(:include, JWTKeeper::Controller)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
jwt_keeper-6.1.3 lib/jwt_keeper/engine.rb
jwt_keeper-6.1.2 lib/jwt_keeper/engine.rb
jwt_keeper-6.1.1 lib/jwt_keeper/engine.rb
jwt_keeper-6.1.0 lib/jwt_keeper/engine.rb
jwt_keeper-6.0.0 lib/jwt_keeper/engine.rb
jwt_keeper-5.0.1 lib/jwt_keeper/engine.rb
jwt_keeper-5.0.0 lib/jwt_keeper/engine.rb
jwt_keeper-4.0.1 lib/jwt_keeper/engine.rb
jwt_keeper-4.0.0 lib/jwt_keeper/engine.rb
jwt_keeper-3.3.0 lib/jwt_keeper/engine.rb
jwt_keeper-3.2.0 lib/jwt_keeper/engine.rb
jwt_keeper-3.1.0 lib/jwt_keeper/engine.rb