rom-rb / rom

Data mapping and persistence toolkit for Ruby
https://rom-rb.org
MIT License
2.08k stars 161 forks source link

Plugin API for changeset #537

Closed solnic closed 5 years ago

solnic commented 5 years ago

Changeset component doesn't support a plugin API yet, so we should add it just like it works with other components.

⚠️ Prerequisite #535

Examples

class MyChangeset < ROM::Changeset::Stateful
  command_type :create

  use :my_awesome_plugin

  my_awesome_plugin :do_magic
end