Module: MagicPipe::Loaders
- Defined in:
- lib/magic_pipe/loaders.rb,
lib/magic_pipe/loaders/simple_active_record.rb
Defined Under Namespace
Classes: SimpleActiveRecord
Class Method Summary collapse
Class Method Details
.lookup(type) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/magic_pipe/loaders.rb', line 3 def self.lookup(type) case type when :simple_active_record then SimpleActiveRecord when Class then type else raise ConfigurationError, "Unknown MagicPipe::Loaders type: '#{type}'." end end |