Sha256: 04f3196deb78e281b6b4505b545e1a8b552eb81ebd83732a98117bb3db007411

Contents?: true

Size: 475 Bytes

Versions: 11

Compression:

Stored size: 475 Bytes

Contents

module Bot
  class Engine < ::Rails::Engine
    isolate_namespace Bot

    # Add a load path for this specific Engine
    initializer "responders.helpers.autoload", before: :set_autoload_paths do |app|
      app.config.autoload_paths << File.join(app.config.root, "app", "bot", "helpers")
    end

    initializer 'bot.routes', after: 'action_dispatch.prepare_dispatcher' do |app|
      ActionDispatch::Routing::Mapper.send :include, ::Bot::RouteExtensions
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bot-0.0.46 lib/bot/engine.rb
bot-0.0.45 lib/bot/engine.rb
bot-0.0.44 lib/bot/engine.rb
bot-0.0.43 lib/bot/engine.rb
bot-0.0.42 lib/bot/engine.rb
bot-0.0.41 lib/bot/engine.rb
bot-0.0.40 lib/bot/engine.rb
bot-0.0.39 lib/bot/engine.rb
bot-0.0.38 lib/bot/engine.rb
bot-0.0.37 lib/bot/engine.rb
bot-0.0.35 lib/bot/engine.rb