Sha256: a4ca771c7b3af4f860a1dd940b1c20676ef1558e3f7baa7997a2c4ff01406343

Contents?: true

Size: 555 Bytes

Versions: 2

Compression:

Stored size: 555 Bytes

Contents

require "vault"

require "base64"
require "json"

module Vault
  class << self
    # The name of this application.
    #
    # @return [String]
    attr_writer :application

    # The name of the application. This must be set or an error will be
    # returned.
    #
    # @return [String]
    def application
      if !defined?(@application) || @application.nil?
        raise RuntimeError, "Must set `Vault.application'!"
      end

      return @application
    end
  end

  autoload :EncryptedModel, "vault/encrypted_model"

  module Rails
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vault-rails-0.1.1 lib/vault/rails.rb
vault-rails-0.1.0 lib/vault/rails.rb