Method: ROM::Mapper::DSL::ClassMethods#use
- Defined in:
- lib/rom/mapper/dsl.rb
#use(plugin, options = {}) ⇒ Object
include a registered plugin in this mapper
38 39 40 41 42 |
# File 'lib/rom/mapper/dsl.rb', line 38 def use(plugin, = {}) adapter = .fetch(:adapter, :default) ROM.plugin_registry.mappers.fetch(plugin, adapter).apply_to(self) end |