Sha256: d2b4b78ea3a5065e2b83a126f8ee65bbba4e07f7619362b21fb416f8e67b0925

Contents?: true

Size: 1012 Bytes

Versions: 11

Compression:

Stored size: 1012 Bytes

Contents

module Recruiter
  class Engine < ::Rails::Engine
    isolate_namespace Recruiter

    config.generators do |generate|
      generate.decorator false
      generate.helper false
      generate.javascript_engine false
      generate.request_specs false
      generate.routing_specs true
      generate.stylesheets false
      generate.test_framework :rspec
      generate.integration_tool :rspec
      generate.view_specs false
      generate.fixture_replacement :machinist
    end

    config.to_prepare do
      [
        Recruiter::CrudFlashMessagerHelper,
        Recruiter::FormHelper,
        Recruiter::HeaderHelper,
        Recruiter::IconsHelper,
        Recruiter::LinksHelper,
        Recruiter::MarkdownHelper,
        Recruiter::OauthProvidersHelper,
        Recruiter::OgDataHelper,
      ].each do |helper|
        ApplicationController.helper(helper)
      end

      Dir.glob(Rails.root + "app/decorators/**/*_decorator*.rb").each do |c|
        require_dependency(c)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
recruiter-1.1.18 lib/recruiter/engine.rb
recruiter-1.1.17 lib/recruiter/engine.rb
recruiter-1.1.16 lib/recruiter/engine.rb
recruiter-1.1.15 lib/recruiter/engine.rb
recruiter-1.1.14 lib/recruiter/engine.rb
recruiter-1.1.12 lib/recruiter/engine.rb
recruiter-1.1.11 lib/recruiter/engine.rb
recruiter-1.1.10 lib/recruiter/engine.rb
recruiter-1.1.9 lib/recruiter/engine.rb
recruiter-1.1.8 lib/recruiter/engine.rb
recruiter-1.1.7 lib/recruiter/engine.rb