Sha256: 65855037ec009ac4c02eafd02258eedd8c79adba9c429f265ff243736be2ba20

Contents?: true

Size: 631 Bytes

Versions: 9

Compression:

Stored size: 631 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.i18n.load_path += Dir[Engine.root.join('config', 'locales', '**', '*.{rb,yml}').to_s]
    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

9 entries across 9 versions & 1 rubygems

Version Path
nyauth-0.6.2 lib/nyauth/engine.rb
nyauth-0.6.1 lib/nyauth/engine.rb
nyauth-0.6.0 lib/nyauth/engine.rb
nyauth-0.5.0 lib/nyauth/engine.rb
nyauth-0.4.0 lib/nyauth/engine.rb
nyauth-0.3.0 lib/nyauth/engine.rb
nyauth-0.2.8 lib/nyauth/engine.rb
nyauth-0.2.7 lib/nyauth/engine.rb
nyauth-0.2.6 lib/nyauth/engine.rb