Method: Datamappify::Repository::MappingDSL#group

Defined in:
lib/datamappify/repository/mapping_dsl.rb

#group(options = {}) { ... } ⇒ void

This method returns an undefined value.

Parameters:

  • options (Hash) (defaults to: {})

Yields:

  • a block containing map_attribute DSLs



39
40
41
42
43
44
45
# File 'lib/datamappify/repository/mapping_dsl.rb', line 39

def group(options = {}, &block)
  self.current_group_options = options

  block.call

  self.current_group_options = {}
end