module EncryptedStore

Constants

VERSION

Public Class Methods

included(base) click to toggle source
# File lib/encrypted_store.rb, line 12
def included(base)
  if defined?(::ActiveRecord) && base < ::ActiveRecord::Base
    base.send(:include, ActiveRecord::Mixin)
  else
    fail Errors::UnsupportedModelError
  end
end
instance() click to toggle source
# File lib/encrypted_store.rb, line 24
def instance
  @__instance ||= Instance.new
end
method_missing(meth, *args, &block) click to toggle source
# File lib/encrypted_store.rb, line 20
def method_missing(meth, *args, &block)
  instance.send(meth, *args, &block)
end