Skip to content

Releases: akuzko/flatter

v1.0.1

26 Feb 14:45
Compare
Choose a tag to compare

Patch Updates

  • Fix collection population on write by adding a check in mapper's add_item_to_target method to omit adding new item to collection if item is already there. This is required in cases when item is built via ActiveRecord's build_association method (which is happening when using :active_record extension), which immediately places new item to the collection, thus leading to erroneous results if item is re-added by flatter's code.

v1.0.0

26 Feb 14:17
Compare
Choose a tag to compare

New Features

  • Merged flatter-extensions code base with flatter. It makes developing new features and fixing issues much easier, as well as sticking to semver principles.
  • During merge process, :active_record extension was significantly improved: target callbacks are no longer dropped. Instead, only association auto-save functionality is disabled, since associated records are meant to be saved via flatter functionality (by mounted mappers).
  • Updated validation behavior with FlatterMapper::Validation module: now mapper's target is validated, and errors are mapped according to mapper's declared mappings.