Sha256: cd8dcd44236a853a673857f62baa01ecdfdb26b35e99c7556639ecb4e9dd7742

Contents?: true

Size: 882 Bytes

Versions: 2

Compression:

Stored size: 882 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.load_app_root' do |app|
      Bobot.app_root = app.root
    end

    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

2 entries across 2 versions & 1 rubygems

Version Path
bobot-1.0.53 lib/bobot/engine.rb
bobot-1.0.52 lib/bobot/engine.rb