Module: MetaRequest

Defined in:
lib/meta_request.rb,
lib/meta_request/event.rb,
lib/meta_request/utils.rb,
lib/meta_request/config.rb,
lib/meta_request/railtie.rb,
lib/meta_request/storage.rb,
lib/meta_request/version.rb,
lib/meta_request/app_request.rb,
lib/meta_request/middlewares.rb,
lib/meta_request/log_interceptor.rb,
lib/meta_request/app_notifications.rb,
lib/meta_request/middlewares/headers.rb,
lib/meta_request/middlewares/app_request_handler.rb,
lib/meta_request/middlewares/meta_request_handler.rb

Defined Under Namespace

Modules: LogInterceptor, Middlewares, Utils Classes: AppNotifications, AppRequest, Config, Event, Railtie, Storage

Constant Summary collapse

VERSION =
Gem.loaded_specs["meta_request"].version.to_s

Class Method Summary collapse

Class Method Details

.configObject


12
13
14
# File 'lib/meta_request.rb', line 12

def self.config
  @config ||= Config.new
end

.configure {|config| ... } ⇒ Object

Yields:


16
17
18
# File 'lib/meta_request.rb', line 16

def self.configure
  yield config
end

.rails_rootObject

stash a frozen copy away so we're not allocating a new string over and over again in AppNotifications and LogInterceptor


22
23
24
# File 'lib/meta_request.rb', line 22

def self.rails_root
  @rails_root ||= Rails.root.to_s.freeze
end