Sha256: 77241196608b3d49a1bc1d71d225bbc4248747e2b78c45726a298af122370da8
Contents?: true
Size: 511 Bytes
Versions: 8
Compression:
Stored size: 511 Bytes
Contents
# coding: utf-8 # # Storage is the interface between multiple Backends. You can use Storage # directly without having to worry about which Backend is in use. # module Boom module Storage def self.backend=(backend) backend = backend.capitalize Boom::Storage.const_get(backend) Boom.config.attributes['backend'] = backend.downcase Boom.config.save end def self.backend Boom::Storage.const_get(Boom.config.attributes['backend'].capitalize).new end end end
Version data entries
8 entries across 8 versions & 1 rubygems