Sha256: 6fcfda7190349d198e6a3b52060a7292966bb8ae92293927406510be626ef980

Contents?: true

Size: 534 Bytes

Versions: 3

Compression:

Stored size: 534 Bytes

Contents

Gem.loaded_specs['nyauth'].dependencies.each do |d|
  begin
    require d.name.gsub('-', '/')
  rescue LoadError
    require d.name
  end
end

module Nyauth
  class Engine < ::Rails::Engine
    isolate_namespace Nyauth

    config.generators do |g|
      g.test_framework      :rspec,        fixture: false
      g.fixture_replacement :factory_girl, dir: 'spec/factories'
      g.assets false
      g.helper false
    end

    initializer 'nyauth.add_middleware' do |app|
      app.middleware.use Nyauth::Middleware
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nyauth-0.7.2 lib/nyauth/engine.rb
nyauth-0.7.1 lib/nyauth/engine.rb
nyauth-0.7.0 lib/nyauth/engine.rb