Method: ROM::SchemaPlugin#extend_dsl

Defined in:
lib/rom/schema_plugin.rb

#extend_dsl(dsl) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Extends a DSL instance with a module provided by the plugin

Parameters:



13
14
15
# File 'lib/rom/schema_plugin.rb', line 13

def extend_dsl(dsl)
  dsl.extend(mod.const_get(:DSL)) if mod.const_defined?(:DSL)
end