Sha256: 7c29271616debff7df85887c7c97da3c933505ce0658a8c0ee3b6e8b682a8b42

Contents?: true

Size: 601 Bytes

Versions: 23

Compression:

Stored size: 601 Bytes

Contents

# frozen_string_literal: true

module Cloudtasker
  # Cloudtasker Rails engine
  class Engine < ::Rails::Engine
    isolate_namespace Cloudtasker

    config.before_initialize do
      # Mount cloudtasker processing endpoint
      Rails.application.routes.append do
        mount Cloudtasker::Engine, at: '/cloudtasker'
      end

      # Add ActiveJob adapter
      require 'active_job/queue_adapters/cloudtasker_adapter' if defined?(::ActiveJob::Railtie)
    end

    config.generators do |g|
      g.test_framework :rspec, fixture: false
      g.assets false
      g.helper false
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
cloudtasker-0.14.rc1 lib/cloudtasker/engine.rb
cloudtasker-0.13.2 lib/cloudtasker/engine.rb
cloudtasker-0.13.1 lib/cloudtasker/engine.rb
cloudtasker-0.13.0 lib/cloudtasker/engine.rb
cloudtasker-0.13.rc2 lib/cloudtasker/engine.rb
cloudtasker-0.13.rc1 lib/cloudtasker/engine.rb
cloudtasker-0.12.2 lib/cloudtasker/engine.rb
cloudtasker-0.12.1 lib/cloudtasker/engine.rb
cloudtasker-0.11.1 lib/cloudtasker/engine.rb
cloudtasker-0.12.0 lib/cloudtasker/engine.rb
cloudtasker-0.12.rc11 lib/cloudtasker/engine.rb
cloudtasker-0.12.rc10 lib/cloudtasker/engine.rb
cloudtasker-0.12.rc9 lib/cloudtasker/engine.rb
cloudtasker-0.12.rc8 lib/cloudtasker/engine.rb
cloudtasker-0.12.rc7 lib/cloudtasker/engine.rb
cloudtasker-0.12.rc6 lib/cloudtasker/engine.rb
cloudtasker-0.12.rc5 lib/cloudtasker/engine.rb
cloudtasker-0.12.rc4 lib/cloudtasker/engine.rb
cloudtasker-0.12.rc3 lib/cloudtasker/engine.rb
cloudtasker-0.12.rc2 lib/cloudtasker/engine.rb