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



14
15
16
# File 'lib/meta_request.rb', line 14

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

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

Yields:



18
19
20
# File 'lib/meta_request.rb', line 18

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



24
25
26
# File 'lib/meta_request.rb', line 24

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