Sha256: d8380b3a7c0585ff54c1df05bb80f3390236003b0d0f809092859f132ff74739

Contents?: true

Size: 541 Bytes

Versions: 1

Compression:

Stored size: 541 Bytes

Contents

# frozen_string_literal: true

require 'logger'
Dir["#{File.dirname(__FILE__)}/remote_backend/*.rb"].sort.each { |file| require file }

module I18n
  module Backend
    class RemoteBackend
      include Implementation

      class << self
        def configuration
          @configuration ||= Configuration.new
        end

        def configure
          yield(configuration) if block_given?
        end

        def logger
          @logger ||= defined?(Rails) ? Rails.logger : Logger.new($stdout)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
i18n-remote_backend-0.1.0 lib/i18n/backend/remote_backend.rb