Sha256: 002d65b87f96135c66c9831095941fe96a89a9fc068fb70aa785d934192aa0cf

Contents?: true

Size: 794 Bytes

Versions: 45

Compression:

Stored size: 794 Bytes

Contents

require 'rails'
require 'bobot'

module Bobot
  class Engine < ::Rails::Engine
    isolate_namespace Bobot
    config.generators.api_only = true

    config.action_dispatch.rescue_responses['Bobot::ActionNotAllowed'] = :forbidden

    initializer 'Bobot setup middlewares' do |app|
      app.config.middleware.use ActionDispatch::Flash
    end

    config.generators do |g|
      g.test_framework :rspec,
                       fixtures: true,
                       view_specs: false,
                       helper_specs: false,
                       routing_specs: false,
                       controller_specs: true,
                       request_specs: true
    end

    rake_tasks do
      Dir[File.join(File.dirname(__FILE__), '../tasks/*.rake')].each { |f| load f }
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
bobot-4.2.0 lib/bobot/engine.rb
bobot-4.1.0 lib/bobot/engine.rb
bobot-4.0.0 lib/bobot/engine.rb
bobot-3.7.9 lib/bobot/engine.rb
bobot-3.7.8 lib/bobot/engine.rb
bobot-3.7.6 lib/bobot/engine.rb
bobot-3.7.3 lib/bobot/engine.rb
bobot-3.7.2 lib/bobot/engine.rb
bobot-3.6.3 lib/bobot/engine.rb
bobot-3.6.0 lib/bobot/engine.rb
bobot-3.5.2 lib/bobot/engine.rb
bobot-3.5.1 lib/bobot/engine.rb
bobot-3.5.0 lib/bobot/engine.rb
bobot-3.0.7 lib/bobot/engine.rb
bobot-3.0.6 lib/bobot/engine.rb
bobot-3.0.5 lib/bobot/engine.rb
bobot-3.0.3 lib/bobot/engine.rb
bobot-3.0.2 lib/bobot/engine.rb
bobot-3.0.1 lib/bobot/engine.rb
bobot-2.6.2 lib/bobot/engine.rb