Sha256: 60d8b6dda7f33be5af5ebc237a5db6275d16cc3cbb859aa18808b1133e5ea33e
Contents?: true
Size: 437 Bytes
Versions: 4
Compression:
Stored size: 437 Bytes
Contents
module Castronaut module Adapters def self.selected_adapter adapter_name=nil adapter_name ||= Castronaut.config.cas_adapter['adapter'] %w{adapter user}.each do |type| require File.join('castronaut', 'adapters', adapter_name, type) end "Castronaut::Adapters::#{adapter_name.classify}::Adapter".constantize end class Base def self.configure options; end end end end
Version data entries
4 entries across 4 versions & 2 rubygems