Sha256: 7efe92d97c61b2b80d8ae83dabbc3f9d7a06d5db5a3c4a5bb98e701a264f87e0

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

module Cryptoprocessing
  class Rails < ::Rails::Engine
    config.after_initialize do
      secrets = ::Rails.application.secrets
      if defined?(secrets.cryptoprocessing_api_endpoint)
        Cryptoprocessing.api_endpoint = secrets.cryptoprocessing_api_endpoint
      end
      if defined?(secrets.cryptoprocessing_api_namespace)
        Cryptoprocessing.api_namespace = secrets.cryptoprocessing_api_namespace
      end
    end
  end if defined?(::Rails)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cryptoprocessing-0.6.1 lib/cryptoprocessing/rails.rb