Sha256: e26e250199accbf7b495521674eaa3f956efb5dbd12db2297f8cb77934a2e733

Contents?: true

Size: 590 Bytes

Versions: 1

Compression:

Stored size: 590 Bytes

Contents

require 'rails_middleware_log/version'

module RailsMiddlewareLog
end

# load Rails/Railtie
begin
  require 'rails'
rescue LoadError
  # do nothing
end

$stderr.puts <<-EOC if !defined?(Rails)
warning: no framework detected.

Your Gemfile might not be configured properly.
---- e.g. ----
Rails:
    gem 'rails_middleware_log'

EOC

# load components
require 'rails_middleware_log/config'
require 'rails_middleware_log/hooks'
require 'rails_middleware_log/log'

# if not using Railtie, call `RailsMiddlewareLog::Hooks.init` directly
require 'rails_middleware_log/railtie' if defined?(Rails)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_middleware_log-0.1.0 lib/rails_middleware_log.rb