File: web_console.rb

package info (click to toggle)
ruby-web-console 4.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 632 kB
  • sloc: ruby: 1,496; javascript: 497; sh: 19; makefile: 4
file content (37 lines) | stat: -rw-r--r-- 810 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# frozen_string_literal: true

require "active_support/dependencies/autoload"
require "active_support/logger"

module WebConsole
  extend ActiveSupport::Autoload

  autoload :View
  autoload :Evaluator
  autoload :ExceptionMapper
  autoload :Session
  autoload :Injector
  autoload :Interceptor
  autoload :Request
  autoload :WhinyRequest
  autoload :Permissions
  autoload :Template
  autoload :Middleware
  autoload :Context
  autoload :SourceLocation

  autoload_at "web_console/errors" do
    autoload :Error
    autoload :DoubleRenderError
  end

  def self.logger
    (defined?(Rails.logger) && Rails.logger) || (@logger ||= ActiveSupport::Logger.new($stderr))
  end

  def self.deprecator
    @deprecator ||= ActiveSupport::Deprecation.new("5.0", "WebConsole")
  end
end

require "web_console/railtie"