Module: Mobility::Plugins::Sequel::Backend
- Extended by:
- Mobility::Plugin
- Defined in:
- lib/mobility/plugins/sequel/backend.rb
Overview
Maps backend names to Sequel namespaced backends.
Instance Method Summary collapse
Methods included from Mobility::Plugin
configure, configure_default, default, dependencies, dependencies_satisfied?, included, included_hook, initialize_hook, requires
Instance Method Details
#load_backend(backend) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/mobility/plugins/sequel/backend.rb', line 14 def load_backend(backend) if Symbol === backend require "mobility/backends/sequel/#{backend}" Backends.load_backend("sequel_#{backend}".to_sym) else super end rescue LoadError => e raise unless e. =~ /sequel\/#{backend}/ super end |